Spaces:
Running
Running
Commit History
-
feat: add embedding normalization utility and corresponding test Running
179360e -
Implement retrieval text and embedding utilities, evaluation scripts, and regression tests
- Add `retrieval_text.py` for token counting, truncation, and embedding input generation. - Create `evaluate_retrieval.py` for benchmarking retrieval performance against JSONL datasets. - Introduce `reindex_embeddings.py` for backfilling metadata-enriched chunk embeddings with optional dry-run functionality. - Establish `__init__.py` in `scripts` for operator-facing maintenance commands. - Develop comprehensive regression tests in `test_retrieval.py` to ensure retrieval accuracy and context handling.34d9afb
-
feat: integrate Neon Object Storage for document uploads and retrieval
- Added boto3 dependency for S3 interactions in pyproject.toml. - Implemented object storage functionality in infrastructure/object_storage.py: - Functions for uploading, retrieving, deleting documents, and handling configuration. - Updated API routes in routes/api.py to utilize object storage for document handling: - Enhanced document upload to store original content in S3. - Modified raw document retrieval to fetch from S3. - Implemented cleanup logic for failed uploads. - Created regression tests for object storage interactions in tests/test_object_storage.py.0cfdea5 -
Refactor code structure for improved readability and maintainability
7a064ce