Expand description
A module for text database operations.
Constants§
- A parameter regarding insertion into the HNSW graph. Higher values result in more accurate search results at the expense of slower retrieval speeds. Cannot be changed after database creation.
- The number of bi-directional links created for each node in the HNSW graph. Cannot be changed after database creation. Increases memory usage and decreases retrieval speed with higher values.
- The number of bi-directional links created for each node in the HNSW graph in the first layer. Cannot be changed after database creation.
Functions§
- Load the text database from disk, or create it if it does not already exist.
Type Aliases§
- A database containing texts and their embeddings.