-
Notifications
You must be signed in to change notification settings - Fork 69
(EAI-923) universal tagging system #671
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
base: main
Are you sure you want to change the base?
Conversation
/** | ||
All possible MongoDB tags as enum. | ||
*/ | ||
export const mongoDbTags = { |
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.
i'm confused by this. isn't this a record, not an enum?
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.
typescript does support enums as a firstclass construct https://www.w3schools.com/typescript/typescript_enums.php
consider also doing a Set
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.
You're right, its not an enum. I made some changes that simplify it a bit.
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.
generally looks good. see comment about the mongoDbTags datastructure
@@ -25,3 +25,4 @@ export * from "./References"; | |||
export * from "./VectorStore"; | |||
export * from "./arrayFilters"; | |||
export * from "./assertEnvVars"; | |||
export * from "./mongoDbMetadata"; |
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.
export * from "./mongoDbMetadata"; |
pls do this as a named export. in the PR #678, i added much of the metadata stuff.
it's exported as mongodb-rag-core/mongoDbMetadata
.
pls update the imports throught this PR accordingly.
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.
export this from mongoDbMetadata/index.ts
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.
LGTM % note about exporting from mongodb-rag-core/mongoDbMetdata
lmk if any questions on what i mean by this/how to do
Jira: https://jira.mongodb.org/browse/EAI-923
Changes
Notes