No project description provided
Project description
Langhchain Integration for Indexify
Indexify complements LangChain by providing a robust platform for indexing large volume of multi-modal content such as PDFs, raw text, audio and video. It provides a retriever API to retrieve context for LLMs.
You can use our LangChain retriever from our repo located in indexify_langchain/retriever.py
to begin retrieving your data.
Below is an example
# setup your indexify client
from indexify.client import IndexifyClient
client = IndexifyClient()
# add docs
from indexify.client import Document
client.bind_extractor(
"openai-embedding-ada-002-extractor",
"openai-embedding",
)
client.add_documents(
[
Document(
text="Indexify is amazing!",
labels={"source": "indexify-example"},
),
Document(
text="Indexify is also a retrieval service for LLM agents!",
labels={"source": "indexify-example"},
)
]
)
# implement retriever from indexify repo
from retriever import IndexifyRetriever
params = {"name": "minilm-embedding", "top_k": 3}
retriever = IndexifyRetriever(client=client, params=params)
docs = retriever.get_relevant_documents("indexify")
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
Close
Hashes for indexify_langchain-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54991aa7d2046f665fa5218a065f126fd2e190ed037ef944394e086940225ec3 |
|
MD5 | 81018956202fba4da651ca74393fbbc5 |
|
BLAKE2b-256 | ab26a998664083ca6e51ce521d297ddd7ad0c2cef4f9f5cac54a4912ec20110d |