Skip to content
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

fix: setDocumentHash should be async #868

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

pserrer1
Copy link
Contributor

Even if used as an async function in multiple places the current implementation of setDocumentHash isn't declared that way.

This PR fixes this issue

Copy link

changeset-bot bot commented May 22, 2024

🦋 Changeset detected

Latest commit: 326a1f9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
llamaindex Minor
docs Minor
@llamaindex/autotool Major
@llamaindex/experimental Patch
@llamaindex/cloudflare-worker-agent-test Patch
@llamaindex/next-agent-test Patch
@llamaindex/nextjs-edge-runtime-test Patch
@llamaindex/waku-query-engine-test Patch
@llamaindex/autotool-01-node-example Patch
@llamaindex/autotool-02-next-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented May 22, 2024

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

Name Status Preview Comments Updated (UTC)
llama-index-ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 5:13pm

Copy link
Member

@himself65 himself65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What’s the use case of this

@pserrer1
Copy link
Contributor Author

What’s the use case of this

  1. This is the only function of the BaseDocumentStore which isn't async
  2. Having a remote and not some in memory document store , this operation will always be async
  3. Looking at the KVDocumentStore - even there the implementation of setDocumentHash is async and therefore should be awaited

@pserrer1 pserrer1 force-pushed the fix/async-set-hash branch from ab0c7cb to 326a1f9 Compare May 28, 2024 16:53
@himself65 himself65 merged commit a29d835 into run-llama:main Jun 3, 2024
15 checks passed
Comment on lines +2 to +3
"llamaindex": minor
"docs": minor
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@himself65 i wouldn't use minor

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't see that, let me change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants