Skip to content

Conversation

@dhruva71
Copy link
Contributor

@vercel
Copy link

vercel bot commented Mar 23, 2025

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Apr 3, 2025 4:10am

@dosubot dosubot bot added size:M labels Mar 23, 2025
Copy link
Collaborator

@ccurme ccurme left a comment

Choose a reason for hiding this comment

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

Thank you!

return ids

def similarity_search(
def similarity_search_pd(
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should ensure that the behavior of similarity_search is identical to what it was previously, and not keep the pandas stuff around IMO.

Copy link
Contributor Author

@dhruva71 dhruva71 Mar 25, 2025

Choose a reason for hiding this comment

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

That I did verify with a test example, with text and metadata filled in. Doesn't seem to be breaking anything. However, I'd like you to verify as well, just to be doubly sure.

@ccurme ccurme self-assigned this Mar 26, 2025
Copy link
Collaborator

@ccurme ccurme left a comment

Choose a reason for hiding this comment

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

Could you run the tests in tests/integration_tests/vectorstores/test_duckdb.py? I'm seeing some of them fail in this branch.

@dhruva71
Copy link
Contributor Author

dhruva71 commented Apr 2, 2025

Great catch! I've updated the code now. I missed a small, but critical case when metadata is None, but is passed to json.loads() as such which caused the issue. Rectified now.

@dosubot dosubot bot added the lgtm label Apr 4, 2025
@ccurme ccurme merged commit f9bb5ec into langchain-ai:master Apr 4, 2025
19 checks passed
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.

2 participants