Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vector search service #1248

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Add vector search service #1248

merged 2 commits into from
Nov 10, 2023

Conversation

thejumpman2323
Copy link
Contributor

Description

fix #1242

Related Issues

Checklist

  • Is this code covered by new or existing unit tests or integration tests?
  • Did you run make test successfully?
  • Do new classes, functions, methods and parameters all have docstrings?
  • Were existing docstrings updated, if necessary?
  • Was external documentation updated, if necessary?

Additional Notes or Comments

@thejumpman2323 thejumpman2323 self-assigned this Nov 6, 2023
superduperdb/base/config.py Outdated Show resolved Hide resolved
superduperdb/base/build.py Outdated Show resolved Hide resolved
# --------------- Create vector search serve -----------------
def serve():
# TODO: configurable
uvicorn.run(app, host="0.0.0.0", port=8000, reload=False)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what to add in Config: class

vector_search_service as a block ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lance://localhost:8000 or inmemory://localhost:8000 (this at the bottom level)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would make it consistent with the other things, and open to add new configurations.

superduperdb/base/config.py Outdated Show resolved Hide resolved
superduperdb/misc/server.py Outdated Show resolved Hide resolved
superduperdb/base/config.py Outdated Show resolved Hide resolved
superduperdb/base/config.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@jieguangzhou jieguangzhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could add the test cases for mode == 'production' and mode != 'production' in the future

LGTM, a few changes, do not affect the merging

superduperdb/components/listener.py Show resolved Hide resolved
superduperdb/misc/server.py Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2023

Codecov Report

Attention: 104 lines in your changes are missing coverage. Please review.

Comparison is base (34830a7) 80.33% compared to head (47cc51c) 80.61%.
Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1248      +/-   ##
==========================================
+ Coverage   80.33%   80.61%   +0.27%     
==========================================
  Files          95      103       +8     
  Lines        6602     6919     +317     
==========================================
+ Hits         5304     5578     +274     
- Misses       1298     1341      +43     
Files Coverage Δ
superduperdb/__main__.py 71.42% <100.00%> (ø)
superduperdb/backends/mongodb/cdc/base.py 77.77% <100.00%> (ø)
superduperdb/backends/mongodb/cdc/listener.py 82.78% <100.00%> (ø)
superduperdb/base/config.py 100.00% <100.00%> (ø)
superduperdb/base/datalayer.py 71.73% <100.00%> (+3.56%) ⬆️
superduperdb/components/model.py 93.66% <100.00%> (+11.00%) ⬆️
superduperdb/ext/openai/model.py 95.40% <ø> (-0.05%) ⬇️
superduperdb/ext/torch/model.py 76.50% <ø> (-0.31%) ⬇️
superduperdb/misc/superduper.py 76.25% <ø> (ø)
superduperdb/vector_search/in_memory.py 98.24% <100.00%> (+12.28%) ⬆️
... and 13 more

... and 11 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thejumpman2323 thejumpman2323 merged commit 59850bd into superduper-io:main Nov 10, 2023
@thejumpman2323 thejumpman2323 deleted the feature/vector_search_service branch November 10, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants