Skip to content

fix(redis): handle both numDocs and num_docs in RedisVectorStore #8142

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

UrielCh
Copy link

@UrielCh UrielCh commented May 8, 2025

The redis store do not use the correct name for the field numDocs

Some other redis conector may convert snake case to camelcase, so I keep the two syntax.

the official redis client use the snake case.

https://github.com/redis/node-redis/blob/bb7845dfe39e385d9e02966d54efb211addb79e0/packages/search/lib/commands/INFO.ts#L25

the current version is compatible with @redis/[email protected] but not with @redis/search@5

Copy link

vercel bot commented May 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 8, 2025 8:35am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) May 8, 2025 8:35am

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. auto:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant