-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/index #128
Open
net-cscience-raphael
wants to merge
29
commits into
dev
Choose a base branch
from
feature/index
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/index #128
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- adds fulltext index - adds individual parameters to nns indexes
- adds fulltext index - adds individual parameters to nns indexes
- adds fulltext index - adds individual parameters to nns indexes
TODO: Add warning if query exceeds hnsw limit. |
lucaro
requested changes
Feb 12, 2025
...ine-core/src/main/kotlin/org/vitrivr/engine/core/model/descriptor/scalar/ScalarDescriptor.kt
Outdated
Show resolved
Hide resolved
lucaro
approved these changes
Feb 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the index for NNS and Fulltext.
The setup is documented on the Wiki page https://github.com/vitrivr/vitrivr-engine/wiki/Documentation#creating-indexes further the documentation is appended below.
The indexes have to be set up in the
schema.json
file.The indexes were created during
schema init
.Nearest Neighbor Search
NNS
Index
hnsw
The hierarchical navigable small world index (HNSW) can be set up for a
VECTOR
field by adding the following configuration to the field in the schema config.Parameters:
attributes
allowed max. 1. The valuevector
is the attribute name in database.type
: "NNS" describes the query type.parameters.type
: "hnsw" describes the indextype.distance
: describes the distance metric for this index. Thehnsw
index provides:m
: the max number of connections per layer (16 by default)efConstruction
: the size of the dynamic candidate list for constructing the graph (64 by default)efSearch
: Specify the size of the dynamic candidate list for search (100 by default)FullText
SearchIndex
gin
The generalized inverted index (GIN) can be set up for a
FULLTEXT
field by adding the following configuration to the field in the schema config.Parameters:
attributes
The valuevalue
is the attribute name in database. All attributes will be concatenated with delimiters" || ' ' || "
to create a document.type
: "FULLTEXT" describes the query type.parameters.type
: "gin" describes the index type.english
: the Language for fulltext index. (Default "english")