Skip to main content
Open on GitHub

Smabbler

Smabbler’s graph-powered platform boosts AI development by transforming data into a structured knowledge foundation.

银河

Galaxia Knowledge Base is an integrated knowledge base and retrieval mechanism for RAG. In contrast to standard solution, it is based on Knowledge Graphs built using symbolic NLP and Knowledge Representation solutions. Provided texts are analysed and transformed into Graphs containing text, language and semantic information. This rich structure allows for retrieval that is based on semantic information, not on vector similarity/distance.

使用Galaxia实现RAG的第一步是将您的文件上传到Galaxia,在其中进行分析,然后构建一个模型(知识图谱)。模型构建完成后,您可以使用GalaxiaRetriever连接到API并开始检索。

更多信息: 文档

安装

pip install langchain-galaxia-retriever

使用

from langchain_galaxia_retriever.retriever import GalaxiaRetriever

gr = GalaxiaRetriever(
api_url="beta.api.smabbler.com",
api_key="<key>",
knowledge_base_id="<knowledge_base_id>",
n_retries=10,
wait_time=5,
)

result = gr.invoke('<test question>')
print(result)