Skip to content

llama-index tools eccenca Corporate Memory Integration

License

Notifications You must be signed in to change notification settings

eccenca/llama-index-cmem

Repository files navigation

llama-index-cmem

llama-index tools eccenca Corporate Memory Integration

poetry ruff mypy copier

Development

Usage

The llama-index-cmem package allows using eccenca Corporate Memory together with LlamaIndex.

Components

  • SPARQLReader: Use to load documents from SPARQL query to use in ingestion pipeline.
  • SPARQLRetriever: Execute SPARQL query to retrieve context from SPARQL endpoint.
  • NLSPARQLRetriever: Text-to-SPARQL retriever to retrieve context from SPARQL endpoint using natural language.
  • CMEMQueryCatalogRetriever: Execute SPARQL query from CMEM query catalog to retrieve context from SPARQL endpoint.

There are several example notebooks available:

  • NLSPARQLRetriever and CMEMQueryCatalogRetriever.
  • ChatEngine: Chatting with an RDF knowledge graph data.
  • QueryEngine: Single Q&A engine with RDF knowledge graph data.
  • PGVector: Generate embeddings from RDF knowledge graph and query with natural language (via vector similarity).