Closed sweep-nightly[bot] closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
sweep-chat | π Building (Inspect) | Visit Preview | π¬ Add feedback | Jun 21, 2024 9:31pm |
sweep-chat-demo | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jun 21, 2024 9:31pm |
sweep-docs | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jun 21, 2024 9:31pm |
sweep-pulley | π Building (Inspect) | Visit Preview | π¬ Add feedback | Jun 21, 2024 9:31pm |
Purpose
This pull request adds unit tests for the
vector_db.py
module to ensure the reliability and correctness of the vector database implementation.Description
The changes in this pull request include:
test_vector_db.py
in the same directory asvector_db.py
to house the unit tests.embed_text_array
functionopenai_call_embedding
function, including error handlingapply_adjustment_score
function with parametrized inputsget_pointwise_reranked_snippet_scores
functionSummary
test_vector_db.py
file to house unit tests forvector_db.py
embed_text_array
openai_call_embedding
apply_adjustment_score
get_pointwise_reranked_snippet_scores
Suggested changes from Sweep Chat by @kevinlu1248. Continue chatting at http://localhost:3000/c/73163217-5887-4be9-85b4-cbf80a72ef33.