Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_galaxia_retriever-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_galaxia_retriever-0.1.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for langchain_galaxia_retriever-0.1.2.tar.gz
Algorithm Hash digest
SHA256 871c34137b505eb6855346412471e8ca3b5171e810eb6c680e700f6f5eea51f5
MD5 7616710a7c077ea9250ef9396fcabbfb
BLAKE2b-256 87de77e2f1c9bc3b1e8624503cd276a64da67152fe0bac10cfe3e0ef71b7dd8a

See more details on using hashes here.

File details

Details for the file langchain_galaxia_retriever-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_galaxia_retriever-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf71d0bdbb2d8d96ffa1e3c766888cb69e6c3beecd400da2c16883beffa7989
MD5 5e57ba11ed3c655ca2ea55d24217fe41
BLAKE2b-256 1a911556195f867c2e7e881a4549e20bffe82138616e29ad5a14ec91895a63fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page