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(In-Memory Vector Store Node): Fix displaying execution data of connected embedding nodes #11701

Merged

Conversation

burivuhster
Copy link
Contributor

@burivuhster burivuhster commented Nov 12, 2024

Summary

Previously, cached vector stores retained stale embedding instances, preventing proper execution status logging. This occurred because the cached logWrapper Proxy continued using an outdated ISupplyDataFunctions context from the initial workflow run.

Solution:
Modified MemoryVectorStoreManager.getInstance() to refresh embedding instances before returning cached vector stores.

Additionally, added await on vector store's populateVectorStore function, to properly display the status of the operation.

Related Linear tickets, Github issues, and Community forum posts

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...re/VectorStoreInMemory/VectorStoreInMemory.node.ts 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Nov 12, 2024
Copy link
Contributor

@OlegIvaniv OlegIvaniv left a comment

Choose a reason for hiding this comment

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

Works like a charm! Kudos for tests

Copy link

cypress bot commented Nov 13, 2024

n8n    Run #7840

Run Properties:  status check passed Passed #7840  •  git commit cf9c366ea6: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 burivuhster 🗃️ e2e/*
Project n8n
Branch Review ai-417-errors-in-openai-embeddings-subnode-not-reported
Run status status check passed Passed #7840
Run duration 04m 18s
Commit git commit cf9c366ea6: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 burivuhster 🗃️ e2e/*
Committer Eugene Molodkin
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 466
View all changes introduced in this branch ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@burivuhster burivuhster merged commit 40ade15 into master Nov 13, 2024
34 of 36 checks passed
@burivuhster burivuhster deleted the ai-417-errors-in-openai-embeddings-subnode-not-reported branch November 13, 2024 11:07
@github-actions github-actions bot mentioned this pull request Nov 13, 2024
@janober
Copy link
Member

janober commented Nov 13, 2024

Got released with [email protected]

burivuhster added a commit that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants