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

community: Add initial tests for AzureSearch vector store #17663

Merged
merged 17 commits into from
Apr 25, 2024

Conversation

mattgotteiner
Copy link
Contributor

Description: AzureSearch vector store has no tests. This PR adds initial tests to validate the code can be imported and used.
Issue: N/A
Dependencies: azure-search-documents and azure-identity are added as optional dependencies for testing

Copy link

vercel bot commented Feb 16, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Apr 25, 2024 8:38pm

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Ɑ: vector store Related to vector store module labels Feb 16, 2024
@mattgotteiner
Copy link
Contributor Author

@pamelafox had the idea to test this by manually reverting the following pr
#17599

I can confirm these tests would catch the regression that PR fixed

@mattgotteiner
Copy link
Contributor Author

@baskaryan please take a look. It would be great to have some test coverage on the Azure Search vector store

@mattgotteiner
Copy link
Contributor Author

@baskaryan

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Feb 21, 2024
@mattgotteiner
Copy link
Contributor Author

Thanks @baskaryan I fixed how I was patching, hopefully the tests run now.

@baskaryan
Copy link
Collaborator

still seeing some lint issues in community, you can run formatter linter locally with

cd libs/community
poetry install --with lint,typing,test
make format
make lint

@mattgotteiner
Copy link
Contributor Author

FYI @baskaryan i think the build is stuck, but please take a look

@baskaryan
Copy link
Collaborator

@mattgotteiner still some lint issues. you can run linter locally with

cd libs/community
make format
make lint

to see what's going on

@mattgotteiner
Copy link
Contributor Author

@mattgotteiner still some lint issues. you can run linter locally with

cd libs/community
make format
make lint

to see what's going on

sorry I lost track of this. just tried to fix it

@mattgotteiner
Copy link
Contributor Author

@baskaryan this is finally passing CI. Please let me know if you can merge it

@mattgotteiner
Copy link
Contributor Author

Hi @baskaryan do you think you can please take another look?

@baskaryan baskaryan enabled auto-merge (squash) April 17, 2024 20:34
auto-merge was automatically disabled April 17, 2024 20:42

Base branch was modified

@mattgotteiner
Copy link
Contributor Author

Hi @baskaryan any chance this PR can be merged? It's passing CI now. Please let me know

@baskaryan baskaryan enabled auto-merge (squash) April 25, 2024 20:38
@baskaryan baskaryan merged commit 28df475 into langchain-ai:master Apr 25, 2024
60 checks passed
@mattgotteiner
Copy link
Contributor Author

Thanks!

hinthornw pushed a commit that referenced this pull request Apr 26, 2024
)

**Description:** AzureSearch vector store has no tests. This PR adds
initial tests to validate the code can be imported and used.
**Issue:** N/A
**Dependencies:** azure-search-documents and azure-identity are added as
optional dependencies for testing

---------

Co-authored-by: Matt Gotteiner <[email protected]>
Co-authored-by: Bagatur <[email protected]>
pprados pushed a commit to pprados/langchain that referenced this pull request Apr 26, 2024
…gchain-ai#17663)

**Description:** AzureSearch vector store has no tests. This PR adds
initial tests to validate the code can be imported and used.
**Issue:** N/A
**Dependencies:** azure-search-documents and azure-identity are added as
optional dependencies for testing

---------

Co-authored-by: Matt Gotteiner <[email protected]>
Co-authored-by: Bagatur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PR looks good. Use to confirm that a PR is ready for merging. size:L This PR changes 100-499 lines, ignoring generated files. Ɑ: vector store Related to vector store module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants