Skip to main content
LlamaIndex is a data framework designed to connect private and enterprise data to large language models through Retrieval-Augmented Generation (RAG). Neosantara provides OpenAI-compatible endpoints for both text generation and vector embeddings.

Setup

Install the LlamaIndex packages and OpenAI-compatible adapters:

Global Settings Configuration

Use the LlamaIndex Settings module to set both the generation LLM and the embedding provider globally.

End-to-End RAG Pipeline Example

The following script creates an in-memory vector index from text documents and queries the index with synthesized context:

Streaming Responses in LlamaIndex

For conversational chat interfaces or interactive CLIs, enable streaming on the query engine:

Next Steps