Spaces:
Sleeping
Sleeping
Download src/rag/__init__.py from aankitdas/doc-intelligence-rag: direct link, hf CLI and curl.
- Browser
- Download file 839 Bytes
-
https://huggingface.co/spaces/aankitdas/doc-intelligence-rag/resolve/main/src/rag/__init__.py
- Command line
-
hf download hf://spaces/aankitdas/doc-intelligence-rag/src/rag/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/aankitdas/doc-intelligence-rag/resolve/main/src/rag/__init__.py
839 Bytes
| """ | |
| RAG Package | |
| =========== | |
| Modular Retrieval-Augmented Generation system with Ollama + Groq | |
| """ | |
| from .chunker import chunk_text, Chunk, chunk_documents | |
| from .embeddings import OllamaEmbeddingClient, cosine_similarity | |
| from .vector_store import ChromaVectorStore, RetrievalResult | |
| from .llm import GroqLLMClient, build_context_string | |
| from .pdf_processor import PDFProcessor | |
| from .pipeline import RAGPipeline, RAGConfig | |
| __all__ = [ | |
| # Chunking | |
| "chunk_text", | |
| "Chunk", | |
| "chunk_documents", | |
| # Embeddings | |
| "OllamaEmbeddingClient", | |
| "cosine_similarity", | |
| # Vector Store | |
| "ChromaVectorStore", | |
| "SimpleVectorStore", | |
| "RetrievalResult", | |
| # LLM | |
| "GroqLLMClient", | |
| "build_context_string", | |
| # PDF Processing | |
| "PDFProcessor", | |
| # Pipeline | |
| "RAGPipeline", | |
| "RAGConfig", | |
| ] | |
| __version__ = "0.1.0" |