langchain
langchain copied to clipboard
Implement RDF Graph and RDF QA Chain
This pull request adds support for RDF Graph-based QA Chain. It uses the same signature and provides similar functionalities as the current Neo4j and Nebula implementations.
In theory, any RDF stores that support the W3C SPARQL Query Language 1.1 standard can be used, although only a few were tested during the development.
https://github.com/lifan0127/langchain/blob/rdf-graph/docs/modules/chains/examples/graph_rdf_qa.ipynb
This approach will not scale well for large, public RDF databases such as Wikidata, but that is a more general problem that requires more research.
cc @hwchase17