langchain galaxia integration
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_galaxia_retriever-0.1.2.tar.gz.
File metadata
- Download URL: langchain_galaxia_retriever-0.1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.0-135-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
871c34137b505eb6855346412471e8ca3b5171e810eb6c680e700f6f5eea51f5
|
|
| MD5 |
7616710a7c077ea9250ef9396fcabbfb
|
|
| BLAKE2b-256 |
87de77e2f1c9bc3b1e8624503cd276a64da67152fe0bac10cfe3e0ef71b7dd8a
|
File details
Details for the file langchain_galaxia_retriever-0.1.2-py3-none-any.whl.
File metadata
- Download URL: langchain_galaxia_retriever-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.0-135-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cf71d0bdbb2d8d96ffa1e3c766888cb69e6c3beecd400da2c16883beffa7989
|
|
| MD5 |
5e57ba11ed3c655ca2ea55d24217fe41
|
|
| BLAKE2b-256 |
1a911556195f867c2e7e881a4549e20bffe82138616e29ad5a14ec91895a63fe
|