Skip to content

Commit

Permalink
Fix docstring in vector search
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik4949 authored and jieguangzhou committed Dec 28, 2023
1 parent abd8699 commit b48047f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions superduperdb/server/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def local_cluster(db):
"""
from superduperdb import CFG

# vector search local service
# Vector search local service
CFG.force_set('cluster.vector_search', 'http://localhost:8000')
CFG.force_set('cluster.cdc', 'http://localhost:8001')
CFG.force_set('cluster.compute', 'dask+thread')
Expand All @@ -47,12 +47,12 @@ def local_cluster(db):
'vector_search', vector_search_app, CFG
)

# cdc local service
# Cdc local service
from superduperdb.cdc.app import app as cdc_app

cdc_server = _superduper_local_service('cdc', cdc_app, CFG)

# local compute
# Local compute
from superduperdb.backends.dask.compute import DaskComputeBackend

local_compute = DaskComputeBackend('', local=True)
Expand Down
4 changes: 2 additions & 2 deletions superduperdb/vector_search/update_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def delete_vectors(
in the fast_vector_search backend.
:param vector_index: A identifier of vector-index.
:param ids: List of ids which were observed as changed documents.
:param ids: List of ids which were observed as deleted documents.
:param db: A ``DB`` instance.
"""
return db.fast_vector_searchers[vector_index].delete(ids)
Expand All @@ -34,7 +34,7 @@ def copy_vectors(
:param vector-index: A identifier of the vector-index.
:param query: A query which was used by `db._build_task_workflow` method
:param ids: List of ids which were observed as changed documents.
:param ids: List of ids which were observed as added/updated documents.
:param db: A ``DB`` instance.
"""
vi = db.vector_indices[vector_index]
Expand Down

0 comments on commit b48047f

Please sign in to comment.