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

docs: Added params table #20

Merged
merged 1 commit into from
Nov 17, 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
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- [Quickstart](#quickstart)
- [Main Features](#main-features)
- [Supported Backends](#supported-backends)
- [Backend Parameters](#backend-parameters)
- [Usage](#usage)

Vicinity is the lightest-weight vector store. Just put in some vectors, calculate query vectors, and off you go. It provides a simple and intuitive API for nearest neighbor search, with support for different backends.
Expand Down Expand Up @@ -79,6 +80,26 @@ The following backends are supported:
- `ANNOY`: "Approximate Nearest Neighbors Oh Yeah" for approximate nearest neighbor search.
- `PYNNDescent`: Approximate nearest neighbor search using PyNNDescent.

### Backend Parameters

| Backend | Parameter | Description | Default Value |
|----------------|--------------------|-----------------------------------------------------------------------------------------------|---------------------|
| **Annoy** | `metric` | Similarity metric to use (`dot`, `euclidean`, `cosine`). | `"cosine"` |
| | `trees` | Number of trees to use for indexing. | `100` |
| | `length` | Optional length of the dataset. | `None` |
| **FAISS** | `index_type` | Type of FAISS index (`flat`, `ivf`, `hnsw`, `lsh`, `scalar`, `pq`, `ivf_scalar`, `ivfpq`, `ivfpqr`). | `"hnsw"` |
| | `metric` | Similarity metric to use (`cosine`, `l2`). | `"cosine"` |
| | `nlist` | Number of cells for IVF indexes. | `100` |
| | `m` | Number of subquantizers for PQ and HNSW indexes. | `8` |
| | `nbits` | Number of bits for LSH and PQ indexes. | `8` |
| | `refine_nbits` | Number of bits for the refinement stage in IVFPQR indexes. | `8` |
| **HNSW** | `space` | Similarity space to use (`cosine`, `l2`). | `"cosine"` |
| | `ef_construction` | Size of the dynamic list during index construction. | `200` |
| | `m` | Number of connections per layer. | `16` |
| **PyNNDescent**| `n_neighbors` | Number of neighbors to use for search. | `15` |
| | `metric` | Similarity metric to use (`cosine`, `euclidean`, `manhattan`). | `"cosine"` |


## Usage

<details>
Expand Down