A powerful document indexing and querying tool built on top of LlamaIndex
Project description
NexuSync
NexuSync is a powerful document indexing and querying tool built on top of LlamaIndex. It allows you to efficiently manage, search, and interact with large collections of documents using advanced natural language processing techniques.
Features
- Smart Document Indexing: Automatically index documents from specified directories, keeping your knowledge base up-to-date.
- Efficient Querying: Use natural language to query your document collection and get relevant answers quickly.
- Upsert Capability: Easily update/insert new documents or remove documents from the index without rebuilding from scratch. Use
refresh_index
. - Chat Interface: Engage in conversational interactions with your document collection, making information retrieval more intuitive.
- Flexible Embedding Options: Choose between OpenAI and HuggingFace embedding models to suit your needs and constraints.
- Streaming Responses: Get real-time, token-by-token responses for a more interactive experience.
Installation
To install NexuSync, run the following command:
pip install nexusync
Quick Start
Here's a simple example to get you started with NexuSync:
from nexusync import NexuSync
from nexusync.models import set_embedding_model, set_language_model
# Set up open-source models from ollama
set_embedding_model(huggingface_model="BAAI/bge-base-en-v1.5")
set_language_model(ollama_model="llama3.2", temperature=0.4)
# Set up models for openai models
set_embedding_model(openai_model="text-embedding-ada-002")
set_language_model(openai_model="gtp-4o-mini", temperature=0.4)
# Initialize NexuSync
ns = NexuSync(input_dirs=["path/to/your/documents"])
# Perform a query
response = ns.query("What is the capital of France?")
print(response['response'])
For more detailed usage examples, check out the demo notebooks.
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
nexusync-0.1.1.tar.gz
(12.1 kB
view hashes)
Built Distribution
nexusync-0.1.1-py3-none-any.whl
(13.7 kB
view hashes)