Langchain integration for Galaxia retriever
Galaxia Knowledge Base
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.
Implementing RAG using Galaxia involves first uploading your files to Galaxia, analyzing them there and then building a model (knowledge graph). When the model is built, you can use GalaxiaRetriever to connect to the API and start retrieving.
Installation
pip install langchain-galaxia-retriever
Usage
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)
Release files for langchain-galaxia-retriever 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_galaxia_retriever-0.1.2.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_galaxia_retriever-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / langchain_galaxia_retriever-0.1.2.tar.gz
| Download URL | langchain_galaxia_retriever-0.1.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
871c34137b505eb6855346412471e8ca3b5171e810eb6c680e700f6f5eea51f5
|
|
BLAKE2b-256 checksum How to use checksums |
87de77e2f1c9bc3b1e8624503cd276a64da67152fe0bac10cfe3e0ef71b7dd8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/5.15.0-135-generic
|
Release files / langchain_galaxia_retriever-0.1.2-py3-none-any.whl
| Download URL | langchain_galaxia_retriever-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cf71d0bdbb2d8d96ffa1e3c766888cb69e6c3beecd400da2c16883beffa7989
|
|
BLAKE2b-256 checksum How to use checksums |
1a911556195f867c2e7e881a4549e20bffe82138616e29ad5a14ec91895a63fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/5.15.0-135-generic
|