langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Implement RDF Graph and RDF QA Chain

Open lifan0127 opened this issue 1 year ago • 0 comments

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

lifan0127 avatar Jun 12 '23 14:06 lifan0127