diff --git a/README.md b/README.md index b37f6c6..3d93abe 100644 --- a/README.md +++ b/README.md @@ -159,10 +159,13 @@ To swap embeddings instead, change `RAG_EMBEDDING_PROVIDER` and `RAG_EMBEDDING_M | `RAG_CHAT_PROVIDER` | `ollama` | chat adapter | | `RAG_EMBEDDING_PROVIDER` | `ollama` | embedding adapter | | `RAG_OLLAMA_BASE_URL` | `http://localhost:11434` | Ollama API root | +| `RAG_OPENAI_BASE_URL` | `http://localhost:1234/v1` | OpenAI-compatible API root | +| `RAG_OPENAI_API_KEY` | empty | optional compatible-endpoint API key | | `RAG_CHAT_MODEL` | `llama3.2:3b` | generation model | | `RAG_EMBEDDING_MODEL` | `embeddinggemma` | embedding model | | `RAG_EVAL_MODEL` | `qwen3:8b` | optional local Ragas judge; should reliably follow tool schemas | | `RAG_DATA_DIR` | `data/qdrant` | persistent vector-store path | +| `RAG_COLLECTION` | `documents` | Qdrant collection name | | `RAG_CHUNK_SIZE` | `900` | characters per chunk | | `RAG_CHUNK_OVERLAP` | `150` | repeated characters between chunks | | `RAG_EMBEDDING_BATCH_SIZE` | `32` | chunks embedded per provider request | diff --git a/docs/index.html b/docs/index.html index 9663492..1e22257 100644 --- a/docs/index.html +++ b/docs/index.html @@ -133,7 +133,7 @@
approved_gold cases into a versioned release dataset.The embedding is stored with cosine distance. Collection dimensionality is discovered from the first embedding and checked thereafter.
document_id, source, page, chunk_index, and text support citations, document filtering, deletion, and replacement on re-ingestion.
document_id, source_sha256, source, page, chunk_index, and the actual chunk text support stable evidence anchors, citations, hybrid retrieval, document filtering, deletion, and replacement on re-ingestion.
BM25Plus ranks stored chunk text while Qdrant ranks embeddings. Reciprocal-rank fusion combines positions, not incompatible raw score magnitudes.
PyMuPDF4LLM preserves PDF layout as Markdown; RapidOCR handles scanned pages locally; LangChain's standalone splitter preserves headings and natural text boundaries while enforcing configurable character limits.
Changing the embedding model or provider requires rebuilding the collection. Mixing vector spaces produces invalid similarity results.