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

Addressed errors in python.md documentation. #600

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions workflows/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ index = dap.StaticDiskIndex(
some_index: np.uint32 = ... # the index in our `q` array of points that we will be using to query on an individual basis
my_query_vector: np.typing.NDArray[my_dtype] = q[some_index] # make sure this is a 1-d array of the same dimensionality as your index!
# normalize if required by my_query_vector /= np.linalg.norm(my_query_vector)
internal_indices, distances = index.query(
internal_indices, distances = index.search(
query=my_query_vector,
k_neighbors=25,
complexity=50, # must be as big or bigger than `k_neighbors`
Expand All @@ -108,7 +108,7 @@ actual_identifiers = index_to_identifiers_map[internal_indices] # using np fanc
```python
import multiprocessing

internal_indices, distances = index.batch_query(
internal_indices, distances = index.batch_search(
queries=q,
k_neighbors=25,
complexity=50,
Expand Down
Loading