Skip to content

Conversation

@dishaprakash
Copy link
Contributor

No description provided.

@dishaprakash dishaprakash requested review from a team as code owners August 26, 2024 07:08
@conventional-commit-lint-gcf
Copy link

conventional-commit-lint-gcf bot commented Aug 26, 2024

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@product-auto-label product-auto-label bot added the api: cloudsql-postgres Issues related to the googleapis/langchain-google-cloud-sql-pg-python API. label Aug 26, 2024
@averikitsch
Copy link
Collaborator

Need to run isort linter. First install the test deps: pip install .[test], then run the linter isort ..

@dishaprakash dishaprakash changed the title Replacing cosine_similarity and maximal_marginal_relevance local methodwith the ones in langchain core. Replacing cosine_similarity and maximal_marginal_relevance local method with the ones in langchain core. Aug 27, 2024
@dishaprakash dishaprakash force-pushed the devex-improvements branch 2 times, most recently from 1962175 to 06f9946 Compare August 27, 2024 09:17
lambda_mult = lambda_mult if lambda_mult else self.lambda_mult
embedding_list = [json.loads(row[self.embedding_column]) for row in results]
mmr_selected = maximal_marginal_relevance(
mmr_selected = utils._maximal_marginal_relevance(
Copy link
Contributor

@vishwarajanand vishwarajanand Aug 27, 2024

Choose a reason for hiding this comment

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

Does this help with the lint error?
The upstream function in langchain repo is maximal_marginal_relevance [link]

Suggested change
mmr_selected = utils._maximal_marginal_relevance(
mmr_selected = utils.maximal_marginal_relevance(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we also need to bump up the version in requirements.txt file here

to langchain-core==0.2.35.

I'm not sure why the renovate bot didn't automatically update it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Might be because our repos are missing the renovate config, like this. Or some other reason.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@vishwarajanand lets file a bug for fixing that

Copy link
Contributor

Choose a reason for hiding this comment

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

@dishaprakash dishaprakash changed the title Replacing cosine_similarity and maximal_marginal_relevance local method with the ones in langchain core. fix: Replacing cosine_similarity and maximal_marginal_relevance local method with the ones in langchain core. Sep 2, 2024
@dishaprakash dishaprakash merged commit 7f27092 into main Sep 6, 2024
@dishaprakash dishaprakash deleted the devex-improvements branch September 6, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: cloudsql-postgres Issues related to the googleapis/langchain-google-cloud-sql-pg-python API.

4 participants