-
Notifications
You must be signed in to change notification settings - Fork 58
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
Adding node modules in examples app #2615
base: release-1.2
Are you sure you want to change the base?
Conversation
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: Chloe <[email protected]>
02ff3e3
to
2f1cbbd
Compare
Signed-off-by: Chloe <[email protected]>
Signed-off-by: Chloe <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
const query = "*=>[KNN 2 @VEC $query_vec]"; | ||
|
||
const vectorField_1: VectorField = { | ||
type: "VECTOR", |
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.
type is a default field, there is no need to pass this. Is it working without passing this field?
export type VectorField = BaseField & {
/** Field identifier */
type: "VECTOR";
/** Additional attributes to be passed with the vector field after the algorithm name. */
attributes: VectorFieldAttributesFlat | VectorFieldAttributesHnsw;
};
"@valkey/valkey-glide": "latest", | ||
"@types/node": "^20.4.8" | ||
"@types/node": "^20.4.8", | ||
"@valkey/valkey-glide": "../../node" |
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.
indent
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.
Please consider adding "uuid" as a dependency, as it is used in vector_search_example.ts
function setConsoleLogger() { | ||
Logger.setLoggerConfig("warn"); | ||
} |
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.
Duplicate with Logger.setLoggerConfig("warn", "glide.log");
?
import { Decoder, GlideClient, GlideClusterClient, GlideFt, FtSearchOptions, | ||
FtSearchReturnType, Logger, VectorField} from "@valkey/valkey-glide"; |
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.
Please consider run linter command npx prettier -w .
under example/node
to keep consistency with other code in the repo, like the format of this import section, as linter is not enforced on example code.
Issue link
This Pull Request is linked to issue (URL): [REPLACE ME]
Checklist
Before submitting the PR make sure the following are checked: