forked from langchain-ai/langchain
-
Notifications
You must be signed in to change notification settings - Fork 0
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
rebase master #1
Merged
chocolate4
merged 53 commits into
chocolate4:intergration_hippo
from
langchain-ai:master
Oct 19, 2023
Merged
rebase master #1
chocolate4
merged 53 commits into
chocolate4:intergration_hippo
from
langchain-ai:master
Oct 19, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Specify default filter URL in sitemap loader and add a security note --------- Co-authored-by: Predrag Gruevski <[email protected]>
Add security note to recursive loader
Description: A large language models developed by Baichuan Intelligent Technology,https://www.baichuan-ai.com/home Issue: None Dependencies: None Tag maintainer: Twitter handle:
- **Description:** - Add `.delete` to myscale vector store. - Revised vector store notebooks - **Tag maintainer:** @baskaryan - **Twitter handle:** @myscaledb @mpsk_liu
Add Cohere retrieval augmented generation to retrievers --------- Co-authored-by: Bagatur <[email protected]>
- Description: Considering the similarity computation method of [BGE](https://github.com/FlagOpen/FlagEmbedding) model is cosine similarity, set normalize_embeddings to be True. - Tag maintainer: @baskaryan Co-authored-by: Erick Friis <[email protected]>
…tadata (#11066) - **Description:** GCSFileLoader retrieve blob's custom metadata and append to document's metadata - **Issue:** #9975, - **Tag maintainer:** @baskaryan please review Co-authored-by: b0l00ib <[email protected]>
…11107) - **Description:** * feature for `QianfanChatEndpoint` function_call ability, add integration_test for it * add `model`, `endpoint` supported in calling params * add raw response in ChatModel Message - **Issue:** * #10867 * #11105 * #10215 - **Dependencies:** no - **Tag maintainer:** @baskaryan - **Twitter handle:** no
Replace this entire comment with: - **Description:** Add a Graph interface - **Tag maintainer:** @baskaryan @hwchase17 - **Twitter handle:** @g_korland
- **Description:** Chroma >= 0.4.10 added support for batch sizes validation of add/upsert. This batch size is dependent on the SQLite limits of the target system and varies. In this change, for Chroma>=0.4.10 batch splitting was added as the aforementioned validation is starting to surface in the Chroma community (users using LC) - **Issue:** N/A - **Dependencies:** N/A - **Tag maintainer:** @eyurtsev - **Twitter handle:** t_azarov
) Minor lint dependency version upgrade to pick up latest functionality. Ruff's new v0.1 version comes with lots of nice features, like fix-safety guarantees and a preview mode for not-yet-stable features: https://astral.sh/blog/ruff-v0.1.0
Example ``` from langchain.schema.runnable import RunnableLambda from langsmith import traceable chain = RunnableLambda(lambda x: x) @Traceable(run_type = "chain") def my_traceable(a): chain.invoke(a) my_traceable(5) ``` Would have a nested result. This would NOT work for interleaving chains and traceables. E.g., things like thiswould still not work well ``` from langchain.schema.runnable import RunnableLambda from langsmith import traceable @Traceable() def other_traceable(a): return a def foo(x): return other_traceable(x) chain = RunnableLambda(foo) @Traceable(run_type = "chain") def my_traceable(a): chain.invoke(a) my_traceable(5) ```
- Update Zep Memory and Retriever docstrings - Zep Memory Retriever: Add support for native MMR - Add MMR example to existing ZepRetriever Notebook @baskaryan
Add security note to playwright tool
Add security notes to tools --------- Co-authored-by: Predrag Gruevski <[email protected]>
…ple (#11941) The Docs folder changed its structure, and the notebook example for SingleStoreDChatMessageHistory has not been copied to the new place due to a merge conflict. Adding the example to the correct place. Co-authored-by: Volodymyr Tkachuk <[email protected]>
…11950) Type hinting `*args` as `List[Any]` means that each positional argument should be a list. Type hinting `**kwargs` as `Dict[str, Any]` means that each keyword argument should be a dict of strings. This is almost never what we actually wanted, and doesn't seem to be what we want in any of the cases I'm replacing here.
…ead be raised in our custom method save()
By default replace input_variables with the correct value
…es. (#11943) This code also generates warnings when our users' apps hit it, which is annoying and doesn't look great. Let's fix it.
…ead be raised in our custom method save() (#11970) .dict() is a Pydantic method that cannot raise exceptions, as it is used eg. in `__eq__` <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
By default replace input_variables with the correct value <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
- **Description:** remove duplicated `__all__` variables
Adds `langchain.runnables.hub.HubRunnable` for pulling configurable objects from the hub
Added docstrings. Some docsctrings formatting.
Add more security notes to agent toolkits.
Add more security notes
documents=docs not required when making a vector search on an existing Clarifai application
Corrected broken link
- **Description:** According to the document https://cloud.baidu.com/doc/WENXINWORKSHOP/s/clntwmv7t, add ERNIE-Bot-4 model support for ErnieBotChat. - **Dependencies:** Before using the ERNIE-Bot-4, you should have the model's access authority.
I may be missing something but it seems like we inappropriately overrode the 'stream()' method, losing callbacks in the process. I don't think (?) it gave us anything in this case to customize it here? See new trace: https://smith.langchain.com/public/fbb82825-3a16-446b-8207-35622358db3b/r and confirmed it streams. Also fixes the stopwords issues from #12000
exprience -> experience
feat: Raise KeyError when 'prompt' key is missing in JSON response This commit updates the error handling in the code to raise a KeyError when the 'prompt' key is not found in the JSON response. This change makes the code more explicit about the nature of the error, helping to improve clarity and debugging. @baskaryan, @eyurtsev.
…a Stores (#11736) - Only works for Data stores with Advanced Website Indexing - https://cloud.google.com/generative-ai-app-builder/docs/about-advanced-features - Minor restructuring - Follow up to #10513 - Remove outdated docs (readded in #11620) - Move legacy class into new py file to clean up the directory - Shouldn't cause backwards compatibility issues as the import works the same way for users
FAISS does not implement embeddings method and use embed_query to embedding texts which is wrong for some embedding models. --------- Co-authored-by: Bagatur <[email protected]>
…1948) We now require uses to have the pip package `llmonitor` installed. It allows us to have cleaner code and avoid duplicates between our library and our code in Langchain.
…11903) Description: Supported RetryOutputParser & RetryWithErrorOutputParser max_retries - max_retries: Maximum number of retries to parser. Issue: None Dependencies: None Tag maintainer: @baskaryan Twitter handle:
…11852) ### Description: To provide an eas llm service access methods in this pull request by impletementing `PaiEasEndpoint` and `PaiEasChatEndpoint` classes in `langchain.llms` and `langchain.chat_models` modules. Base on this pr, langchain users can build up a chain to call remote eas llm service and get the llm inference results. ### About EAS Service EAS is a Alicloud product on Alibaba Cloud Machine Learning Platform for AI which is short for AliCloud PAI. EAS provides model inference deployment services for the users. We build up a llm inference services on EAS with a general llm docker images. Therefore, end users can quickly setup their llm remote instances to load majority of the hugginface llm models, and serve as a backend for most of the llm apps. ### Dependencies This pr does't involve any new dependencies. --------- Co-authored-by: 子洪 <[email protected]>
- **Description:** update Weaviate to support multi tenancy - **Issue:** 9956 - **Dependencies:** - **Tag maintainer:** hwchase17 - **Twitter handle:** dsx1986_
--------- Co-authored-by: Bagatur <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.