-
Notifications
You must be signed in to change notification settings - Fork 143
RDoc-3605 [Node.js] Vector search using a static index #2226
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
RDoc-3605 [Node.js] Vector search using a static index #2226
Conversation
| this.vectorField("vectorFromTextEmbeddings", { | ||
| // Vector options can be customized | ||
| // in the same way as the above index example. | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sourceEmbeddingType and destinationEmbeddingType are required.
| this.vectorField("vectorFromTextEmbeddings", { | |
| // Vector options can be customized | |
| // in the same way as the above index example. | |
| }); | |
| this.vectorField("vectorFromTextEmbeddings", { | |
| // Vector options can be customized | |
| // in the same way as the above index example. | |
| sourceEmbeddingType: "Single", destinationEmbeddingType: "Single" | |
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| "vectorFromTextEmbeddings": { | ||
| // Vector options can be customized | ||
| // in the same way as the above index example. | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "vectorFromTextEmbeddings": { | |
| // Vector options can be customized | |
| // in the same way as the above index example. | |
| } | |
| "vectorFromTextEmbeddings": { | |
| // Vector options can be customized | |
| // in the same way as the above index example. | |
| vector: { | |
| sourceEmbeddingType: "Single", destinationEmbeddingType: "Single" | |
| } | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| queryVector => queryVector | ||
| // Call 'byEmbedding' | ||
| // Provide the vector for the similarity comparison | ||
| .byEmbedding([6.599999904632568, 7.699999809265137]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| .byEmbedding([6.599999904632568, 7.699999809265137]) | |
| .byEmbedding(RavenVector([6.599999904632568, 7.699999809265137]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| .rawQuery(` | ||
| from index "Movies/ByVector/Single" | ||
| where vector.search(vectorFromSingle, $queryVector)`) | ||
| .addParameter("queryVector", [6.599999904632568, 7.699999809265137]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| .addParameter("queryVector", [6.599999904632568, 7.699999809265137]) | |
| .addParameter("queryVector", RavenVector([6.599999904632568, 7.699999809265137]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Related issue:
https://issues.hibernatingrhinos.com/issue/RDoc-3605/Node.js-Vector-Search