voice-rag 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. voice_rag-0.1.0/.gitignore +9 -0
  2. voice_rag-0.1.0/CHANGELOG.md +21 -0
  3. voice_rag-0.1.0/CONTRIBUTING.md +100 -0
  4. voice_rag-0.1.0/LICENSE +21 -0
  5. voice_rag-0.1.0/PKG-INFO +158 -0
  6. voice_rag-0.1.0/README.md +93 -0
  7. voice_rag-0.1.0/data/sample_docs/claude-code-changelog.md +2235 -0
  8. voice_rag-0.1.0/data/sample_docs/the-adventure-of-the-speckled-band.md +1139 -0
  9. voice_rag-0.1.0/pyproject.toml +91 -0
  10. voice_rag-0.1.0/scripts/smoke_test.sh +24 -0
  11. voice_rag-0.1.0/tests/__init__.py +0 -0
  12. voice_rag-0.1.0/tests/test_agent.py +24 -0
  13. voice_rag-0.1.0/tests/test_chunking.py +41 -0
  14. voice_rag-0.1.0/tests/test_cli.py +102 -0
  15. voice_rag-0.1.0/tests/test_config.py +46 -0
  16. voice_rag-0.1.0/tests/test_embeddings_openai.py +22 -0
  17. voice_rag-0.1.0/tests/test_llm_anthropic.py +26 -0
  18. voice_rag-0.1.0/tests/test_llm_gemini.py +28 -0
  19. voice_rag-0.1.0/tests/test_llm_openai.py +36 -0
  20. voice_rag-0.1.0/tests/test_models.py +22 -0
  21. voice_rag-0.1.0/tests/test_parsers.py +16 -0
  22. voice_rag-0.1.0/tests/test_retrieval.py +21 -0
  23. voice_rag-0.1.0/tests/test_server.py +71 -0
  24. voice_rag-0.1.0/tests/test_streaming.py +34 -0
  25. voice_rag-0.1.0/tests/test_vector_store_qdrant.py +45 -0
  26. voice_rag-0.1.0/tests/test_voice_deepgram.py +11 -0
  27. voice_rag-0.1.0/tests/test_voice_elevenlabs.py +17 -0
  28. voice_rag-0.1.0/voice-rag.yaml +40 -0
  29. voice_rag-0.1.0/voice_rag/__init__.py +18 -0
  30. voice_rag-0.1.0/voice_rag/_version.py +8 -0
  31. voice_rag-0.1.0/voice_rag/agent.py +190 -0
  32. voice_rag-0.1.0/voice_rag/cli/__init__.py +0 -0
  33. voice_rag-0.1.0/voice_rag/cli/__main__.py +21 -0
  34. voice_rag-0.1.0/voice_rag/cli/commands.py +187 -0
  35. voice_rag-0.1.0/voice_rag/connectors/__init__.py +0 -0
  36. voice_rag-0.1.0/voice_rag/connectors/embeddings/__init__.py +3 -0
  37. voice_rag-0.1.0/voice_rag/connectors/embeddings/base.py +9 -0
  38. voice_rag-0.1.0/voice_rag/connectors/embeddings/openai.py +26 -0
  39. voice_rag-0.1.0/voice_rag/connectors/llm/__init__.py +15 -0
  40. voice_rag-0.1.0/voice_rag/connectors/llm/anthropic.py +51 -0
  41. voice_rag-0.1.0/voice_rag/connectors/llm/base.py +5 -0
  42. voice_rag-0.1.0/voice_rag/connectors/llm/gemini.py +59 -0
  43. voice_rag-0.1.0/voice_rag/connectors/llm/openai.py +40 -0
  44. voice_rag-0.1.0/voice_rag/connectors/parsers/__init__.py +16 -0
  45. voice_rag-0.1.0/voice_rag/connectors/parsers/base.py +8 -0
  46. voice_rag-0.1.0/voice_rag/connectors/parsers/docx.py +13 -0
  47. voice_rag-0.1.0/voice_rag/connectors/parsers/markdown.py +8 -0
  48. voice_rag-0.1.0/voice_rag/connectors/parsers/pdf.py +15 -0
  49. voice_rag-0.1.0/voice_rag/connectors/parsers/text.py +8 -0
  50. voice_rag-0.1.0/voice_rag/connectors/vector_stores/__init__.py +3 -0
  51. voice_rag-0.1.0/voice_rag/connectors/vector_stores/base.py +11 -0
  52. voice_rag-0.1.0/voice_rag/connectors/vector_stores/qdrant.py +130 -0
  53. voice_rag-0.1.0/voice_rag/connectors/voice/__init__.py +4 -0
  54. voice_rag-0.1.0/voice_rag/connectors/voice/base.py +7 -0
  55. voice_rag-0.1.0/voice_rag/connectors/voice/deepgram.py +14 -0
  56. voice_rag-0.1.0/voice_rag/connectors/voice/elevenlabs.py +13 -0
  57. voice_rag-0.1.0/voice_rag/core/__init__.py +0 -0
  58. voice_rag-0.1.0/voice_rag/core/chunking.py +227 -0
  59. voice_rag-0.1.0/voice_rag/core/config.py +88 -0
  60. voice_rag-0.1.0/voice_rag/core/models.py +32 -0
  61. voice_rag-0.1.0/voice_rag/core/retrieval.py +33 -0
  62. voice_rag-0.1.0/voice_rag/core/streaming.py +35 -0
  63. voice_rag-0.1.0/voice_rag/server.py +88 -0
@@ -0,0 +1,9 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .pytest_cache/
4
+ .qdrant/
5
+ .venv/
6
+ dist/
7
+ build/
8
+ coverage/
9
+ .DS_Store
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.1.0] - 2026-03-16
8
+
9
+ ### Added
10
+
11
+ - `KnowledgeAgent` high-level Python API: `ingest()`, `query()`, `create_app()`
12
+ - CLI: `voice-rag init`, `ingest`, `serve`, `query`, `inspect`, `doctor`
13
+ - Voice adapters: ElevenLabs, Deepgram
14
+ - LLM clients: OpenAI, Anthropic, Gemini (with streaming)
15
+ - Embedding client: OpenAI (`text-embedding-3-small` default)
16
+ - Vector store: Qdrant with hybrid dense + BM25 retrieval
17
+ - Document parsers: `.txt`, `.md`, `.pdf` (via PyMuPDF), `.docx`
18
+ - `VoiceRagConfig` with YAML and environment variable support
19
+ - FastAPI webhook serving OpenAI-style `/v1/chat/completions` (SSE streaming)
20
+ - `voice-rag.yaml` annotated example config
21
+ - GitHub Actions CI (Python 3.11, 3.12) and publish pipeline (TestPyPI → PyPI)
@@ -0,0 +1,100 @@
1
+ # Contributing to voice-rag
2
+
3
+ Thank you for contributing! This guide covers how to add new connectors.
4
+
5
+ ## Project structure
6
+
7
+ ```text
8
+ voice_rag/
9
+ agent.py # KnowledgeAgent high-level API; connector registries here
10
+ core/
11
+ config.py # VoiceRagConfig pydantic model
12
+ models.py # Chunk, RetrievedChunk data models
13
+ chunking.py # Text/markdown chunking logic
14
+ retrieval.py # Prompt augmentation with retrieved chunks
15
+ streaming.py # SSE streaming helpers
16
+ connectors/
17
+ llm/ # LLM chat clients (openai, anthropic, gemini)
18
+ voice/ # Voice adapters (elevenlabs, deepgram)
19
+ embeddings/ # Embedding clients (openai)
20
+ vector_stores/ # Vector store clients (qdrant)
21
+ parsers/ # Document loaders (text, markdown, pdf, docx)
22
+ cli/
23
+ commands.py # Click commands
24
+ __main__.py # CLI entry point
25
+ server.py # FastAPI app factory
26
+ tests/ # pytest tests (mirror voice_rag/ structure)
27
+ ```
28
+
29
+ ## Adding a new LLM connector
30
+
31
+ 1. Create `voice_rag/connectors/llm/<provider>.py`:
32
+
33
+ ```python
34
+ from voice_rag.connectors.llm.base import BaseChatClient
35
+ from typing import Iterator
36
+
37
+ class MyProviderChatClient(BaseChatClient):
38
+ def __init__(self, api_key: str):
39
+ self.client = MyProviderSDK(api_key=api_key)
40
+
41
+ def stream_chat_completion(self, messages: list[dict], model: str) -> Iterator[str]:
42
+ # yield SSE-formatted chunks: "data: {...}\n\n"
43
+ for chunk in self.client.stream(messages=messages, model=model):
44
+ yield f"data: {chunk.to_json()}\n\n"
45
+ yield "data: [DONE]\n\n"
46
+ ```
47
+
48
+ 2. Register it in `voice_rag/agent.py`:
49
+
50
+ ```python
51
+ _LLM_CLIENTS = {
52
+ "openai": "voice_rag.connectors.llm.openai:OpenAIChatClient",
53
+ "anthropic": "voice_rag.connectors.llm.anthropic:AnthropicChatClient",
54
+ "gemini": "voice_rag.connectors.llm.gemini:GeminiChatClient",
55
+ "myprovider": "voice_rag.connectors.llm.myprovider:MyProviderChatClient",
56
+ }
57
+ ```
58
+
59
+ 3. Add the optional dependency in `pyproject.toml`:
60
+
61
+ ```toml
62
+ [project.optional-dependencies]
63
+ myprovider = ["myprovider-sdk>=1.0.0"]
64
+ all = ["voice-rag[anthropic,gemini,deepgram,elevenlabs,myprovider,pdf,docx]"]
65
+ ```
66
+
67
+ 4. Add a test in `tests/test_llm_myprovider.py` (see `tests/test_llm_openai.py` for the pattern).
68
+
69
+ ## Adding a new voice connector
70
+
71
+ Same pattern as LLM. Implement `BaseVoiceAdapter` from `voice_rag/connectors/voice/base.py` and register in `_VOICE_ADAPTERS` in `agent.py`.
72
+
73
+ ## Adding a new vector store connector
74
+
75
+ Implement `BaseVectorStore` from `voice_rag/connectors/vector_stores/base.py`. There is no auto-registry yet — wire it manually in `KnowledgeAgent._init_components()` with a provider name check. Open a PR and we'll add registry support if needed.
76
+
77
+ ## Adding a new document parser
78
+
79
+ Implement `BaseLoader` from `voice_rag/connectors/parsers/` and register the file extension in `_PARSERS` in `agent.py`.
80
+
81
+ ## Running tests
82
+
83
+ **On macOS (to avoid arm64/x86_64 Rosetta issues):**
84
+
85
+ ```bash
86
+ arch -arm64 .venv/bin/python -m pytest tests/ -v
87
+ ```
88
+
89
+ **On Linux / CI:**
90
+
91
+ ```bash
92
+ pytest tests/ -v
93
+ ```
94
+
95
+ ## Submitting a PR
96
+
97
+ - Branch name: `feat/<connector-name>` or `fix/<description>`
98
+ - Every new connector must have tests
99
+ - Run the full test suite before opening the PR
100
+ - Reviewers will check: does it implement the base class, is it registered, does it have tests, does it add the optional dep?
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kytona Limited
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,158 @@
1
+ Metadata-Version: 2.3
2
+ Name: voice-rag
3
+ Version: 0.1.0
4
+ Summary: Provider-agnostic voice RAG pipeline. Plug in your voice provider, LLM, vector store, and document parsers.
5
+ Project-URL: Homepage, https://github.com/kytona/voice-rag
6
+ Project-URL: Repository, https://github.com/kytona/voice-rag
7
+ Project-URL: Changelog, https://github.com/kytona/voice-rag/blob/main/CHANGELOG.md
8
+ Author-email: Gaurang Torvekar <info@kytona.com>
9
+ Maintainer-email: Kytona Limited <info@kytona.com>
10
+ License: MIT
11
+ Keywords: ai,chatbot,elevenlabs,fastapi,llm,qdrant,rag,retrieval,vector-search,voice
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Framework :: FastAPI
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Multimedia :: Sound/Audio
22
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Requires-Python: >=3.11
25
+ Requires-Dist: click>=8.0.0
26
+ Requires-Dist: fastapi>=0.109.0
27
+ Requires-Dist: fastembed>=0.6.0
28
+ Requires-Dist: httpx>=0.27.0
29
+ Requires-Dist: openai>=1.0.0
30
+ Requires-Dist: pydantic-settings>=2.2.1
31
+ Requires-Dist: pydantic>=2.0.0
32
+ Requires-Dist: python-multipart>=0.0.6
33
+ Requires-Dist: pyyaml>=6.0
34
+ Requires-Dist: qdrant-client>=1.10.0
35
+ Requires-Dist: uvicorn>=0.27.0
36
+ Provides-Extra: all
37
+ Requires-Dist: anthropic>=0.40.0; extra == 'all'
38
+ Requires-Dist: deepgram-sdk>=3.0.0; extra == 'all'
39
+ Requires-Dist: elevenlabs>=1.0.0; extra == 'all'
40
+ Requires-Dist: google-genai>=1.0.0; extra == 'all'
41
+ Requires-Dist: pymupdf>=1.24.0; extra == 'all'
42
+ Requires-Dist: python-docx>=1.0.0; extra == 'all'
43
+ Provides-Extra: anthropic
44
+ Requires-Dist: anthropic>=0.40.0; extra == 'anthropic'
45
+ Provides-Extra: deepgram
46
+ Requires-Dist: deepgram-sdk>=3.0.0; extra == 'deepgram'
47
+ Provides-Extra: dev
48
+ Requires-Dist: anthropic>=0.40.0; extra == 'dev'
49
+ Requires-Dist: deepgram-sdk>=3.0.0; extra == 'dev'
50
+ Requires-Dist: elevenlabs>=1.0.0; extra == 'dev'
51
+ Requires-Dist: google-genai>=1.0.0; extra == 'dev'
52
+ Requires-Dist: pymupdf>=1.24.0; extra == 'dev'
53
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
54
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
55
+ Requires-Dist: python-docx>=1.0.0; extra == 'dev'
56
+ Provides-Extra: docx
57
+ Requires-Dist: python-docx>=1.0.0; extra == 'docx'
58
+ Provides-Extra: elevenlabs
59
+ Requires-Dist: elevenlabs>=1.0.0; extra == 'elevenlabs'
60
+ Provides-Extra: gemini
61
+ Requires-Dist: google-genai>=1.0.0; extra == 'gemini'
62
+ Provides-Extra: pdf
63
+ Requires-Dist: pymupdf>=1.24.0; extra == 'pdf'
64
+ Description-Content-Type: text/markdown
65
+
66
+ # voice-rag
67
+
68
+ [![PyPI version](https://img.shields.io/pypi/v/voice-rag)](https://pypi.org/project/voice-rag/)
69
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/kytona/voice-rag/blob/main/LICENSE)
70
+ [![Python](https://img.shields.io/pypi/pyversions/voice-rag)](https://pypi.org/project/voice-rag/)
71
+
72
+ `voice-rag` is a Python package for voice-oriented RAG pipelines: ingest local documents, store them in Qdrant, serve an OpenAI-style chat-completions webhook, and swap voice or LLM providers behind a stable interface.
73
+
74
+ ## What it includes
75
+
76
+ - Python SDK via `KnowledgeAgent`
77
+ - CLI for `init`, `ingest`, `serve`, `query`, `inspect`, and `doctor`
78
+ - Built-in voice adapters for `elevenlabs` and `deepgram`
79
+ - Built-in LLM clients for `openai`, `anthropic`, and `gemini`
80
+ - Built-in parsers for `.txt`, `.md`, `.pdf`, and `.docx`
81
+ - Qdrant vector store integration with hybrid dense + BM25 retrieval
82
+
83
+ ## Quickstart
84
+
85
+ ```bash
86
+ pip install "voice-rag[elevenlabs]"
87
+ export OPENAI_API_KEY=your_api_key_here
88
+ voice-rag init
89
+ ```
90
+
91
+ Edit `voice-rag.yaml`, then ingest and serve:
92
+
93
+ ```bash
94
+ voice-rag ingest ./data/sample_docs/claude-code-changelog.md --recreate
95
+ voice-rag serve
96
+ ```
97
+
98
+ Point your voice platform to `http://localhost:8000/v1` if it expects an OpenAI-style Custom LLM endpoint.
99
+ By default, `voice-rag` uses an embedded local Qdrant store in `.qdrant`, so you do not need to start a separate Qdrant server unless you set `vector_store.url`.
100
+
101
+ ## CLI
102
+
103
+ ```bash
104
+ voice-rag init [--dir PATH]
105
+ voice-rag ingest <path> [--recreate] [--config PATH]
106
+ voice-rag serve [--host HOST] [--port PORT] [--reload] [--config PATH]
107
+ voice-rag query <text> [--limit N] [--config PATH]
108
+ voice-rag inspect [--config PATH]
109
+ voice-rag doctor
110
+ ```
111
+
112
+ ## Python API
113
+
114
+ ```python
115
+ from voice_rag import KnowledgeAgent, VoiceRagConfig
116
+
117
+ config = VoiceRagConfig()
118
+ agent = KnowledgeAgent(config=config)
119
+ agent.ingest("./docs", recreate=True)
120
+ app = agent.create_app()
121
+ ```
122
+
123
+ ## Configuration
124
+
125
+ `voice-rag` reads configuration from `voice-rag.yaml` and environment variables. It does not auto-load `.env` files.
126
+
127
+ | Key | Env | Default |
128
+ | ----------------------------------- | ------------------------------ | -------------------------- |
129
+ | `llm.api_key` / `embedding.api_key` | `OPENAI_API_KEY` | (required for OpenAI) |
130
+ | `llm.provider` | `LLM_PROVIDER` | `openai` |
131
+ | `llm.model` | `LLM_MODEL` | `gpt-4o-mini` |
132
+ | `embedding.model` | `EMBEDDING_MODEL` | `text-embedding-3-small` |
133
+ | `vector_store.url` | `VECTOR_STORE_URL` | empty; use local `.qdrant` |
134
+ | `vector_store.collection_name` | `VECTOR_STORE_COLLECTION_NAME` | `knowledge_base` |
135
+ | `vector_store.local_path` | `VECTOR_STORE_LOCAL_PATH` | `.qdrant` |
136
+ | `server.port` | `SERVER_PORT` | `8000` |
137
+
138
+ See [voice-rag.yaml](https://github.com/kytona/voice-rag/blob/main/voice-rag.yaml) for the full schema.
139
+
140
+ ## Development
141
+
142
+ ```bash
143
+ pip install -e ".[all,dev]"
144
+ pytest tests/ -v
145
+ ```
146
+
147
+ Use [CONTRIBUTING.md](https://github.com/kytona/voice-rag/blob/main/CONTRIBUTING.md) for connector and packaging guidelines.
148
+
149
+ ## Publishing to PyPI
150
+
151
+ With `PYPI_TOKEN` and the `release` environment configured in the repo, push a version tag to trigger the GitHub Actions workflow:
152
+
153
+ ```bash
154
+ git tag v0.1.0
155
+ git push origin v0.1.0
156
+ ```
157
+
158
+ The workflow runs smoke test → build → publish to PyPI.
@@ -0,0 +1,93 @@
1
+ # voice-rag
2
+
3
+ [![PyPI version](https://img.shields.io/pypi/v/voice-rag)](https://pypi.org/project/voice-rag/)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/kytona/voice-rag/blob/main/LICENSE)
5
+ [![Python](https://img.shields.io/pypi/pyversions/voice-rag)](https://pypi.org/project/voice-rag/)
6
+
7
+ `voice-rag` is a Python package for voice-oriented RAG pipelines: ingest local documents, store them in Qdrant, serve an OpenAI-style chat-completions webhook, and swap voice or LLM providers behind a stable interface.
8
+
9
+ ## What it includes
10
+
11
+ - Python SDK via `KnowledgeAgent`
12
+ - CLI for `init`, `ingest`, `serve`, `query`, `inspect`, and `doctor`
13
+ - Built-in voice adapters for `elevenlabs` and `deepgram`
14
+ - Built-in LLM clients for `openai`, `anthropic`, and `gemini`
15
+ - Built-in parsers for `.txt`, `.md`, `.pdf`, and `.docx`
16
+ - Qdrant vector store integration with hybrid dense + BM25 retrieval
17
+
18
+ ## Quickstart
19
+
20
+ ```bash
21
+ pip install "voice-rag[elevenlabs]"
22
+ export OPENAI_API_KEY=your_api_key_here
23
+ voice-rag init
24
+ ```
25
+
26
+ Edit `voice-rag.yaml`, then ingest and serve:
27
+
28
+ ```bash
29
+ voice-rag ingest ./data/sample_docs/claude-code-changelog.md --recreate
30
+ voice-rag serve
31
+ ```
32
+
33
+ Point your voice platform to `http://localhost:8000/v1` if it expects an OpenAI-style Custom LLM endpoint.
34
+ By default, `voice-rag` uses an embedded local Qdrant store in `.qdrant`, so you do not need to start a separate Qdrant server unless you set `vector_store.url`.
35
+
36
+ ## CLI
37
+
38
+ ```bash
39
+ voice-rag init [--dir PATH]
40
+ voice-rag ingest <path> [--recreate] [--config PATH]
41
+ voice-rag serve [--host HOST] [--port PORT] [--reload] [--config PATH]
42
+ voice-rag query <text> [--limit N] [--config PATH]
43
+ voice-rag inspect [--config PATH]
44
+ voice-rag doctor
45
+ ```
46
+
47
+ ## Python API
48
+
49
+ ```python
50
+ from voice_rag import KnowledgeAgent, VoiceRagConfig
51
+
52
+ config = VoiceRagConfig()
53
+ agent = KnowledgeAgent(config=config)
54
+ agent.ingest("./docs", recreate=True)
55
+ app = agent.create_app()
56
+ ```
57
+
58
+ ## Configuration
59
+
60
+ `voice-rag` reads configuration from `voice-rag.yaml` and environment variables. It does not auto-load `.env` files.
61
+
62
+ | Key | Env | Default |
63
+ | ----------------------------------- | ------------------------------ | -------------------------- |
64
+ | `llm.api_key` / `embedding.api_key` | `OPENAI_API_KEY` | (required for OpenAI) |
65
+ | `llm.provider` | `LLM_PROVIDER` | `openai` |
66
+ | `llm.model` | `LLM_MODEL` | `gpt-4o-mini` |
67
+ | `embedding.model` | `EMBEDDING_MODEL` | `text-embedding-3-small` |
68
+ | `vector_store.url` | `VECTOR_STORE_URL` | empty; use local `.qdrant` |
69
+ | `vector_store.collection_name` | `VECTOR_STORE_COLLECTION_NAME` | `knowledge_base` |
70
+ | `vector_store.local_path` | `VECTOR_STORE_LOCAL_PATH` | `.qdrant` |
71
+ | `server.port` | `SERVER_PORT` | `8000` |
72
+
73
+ See [voice-rag.yaml](https://github.com/kytona/voice-rag/blob/main/voice-rag.yaml) for the full schema.
74
+
75
+ ## Development
76
+
77
+ ```bash
78
+ pip install -e ".[all,dev]"
79
+ pytest tests/ -v
80
+ ```
81
+
82
+ Use [CONTRIBUTING.md](https://github.com/kytona/voice-rag/blob/main/CONTRIBUTING.md) for connector and packaging guidelines.
83
+
84
+ ## Publishing to PyPI
85
+
86
+ With `PYPI_TOKEN` and the `release` environment configured in the repo, push a version tag to trigger the GitHub Actions workflow:
87
+
88
+ ```bash
89
+ git tag v0.1.0
90
+ git push origin v0.1.0
91
+ ```
92
+
93
+ The workflow runs smoke test → build → publish to PyPI.