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

(new docs): update branch and resolve conflicts around build #21271

Closed
wants to merge 111 commits into from

Commits on Apr 30, 2024

  1. community[patch]: Modify the text field type and add new exception ha…

    …ndling (#20116)
    
    Co-authored-by: gaoyuan <[email protected]>
    19374242 and gaoyuan committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    a7a4630 View commit details
    Browse the repository at this point in the history
  2. community[patch]: Fix for github issue #17690 (#20117)

    …/17690
    
    Thank you for contributing to LangChain!
    
    - [x] **Fix Google Lens knowledge graph issue**: "langchain: community"
    - Fix for [No "knowledge_graph" property in Google Lens API call from
    SerpAPI](#17690)
    
    
    - [x] **PR message**: ***Delete this entire checklist*** and replace
    with
    - **Description:** handled the existence of keys in the json response of
    Google Lens
    - **Issue:** [No "knowledge_graph" property in Google Lens API call from
    SerpAPI](#17690)
    
    
    
    - [x] **Lint and test**: Run `make format`, `make lint` and `make test`
    from the root of the package(s) you've modified. See contribution
    guidelines for more: https://python.langchain.com/docs/contributing/
    
    
    If no one reviews your PR within a few days, please @-mention one of
    baskaryan, efriis, eyurtsev, hwchase17.
    
    Co-authored-by: Bagatur <[email protected]>
    davidkgp and baskaryan committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    28b0b0d View commit details
    Browse the repository at this point in the history
  3. community[patch]: Fix Bedrock Mistral stop sequence request key (#20115)

    - **Description:** Change Bedrock's Mistral stop sequence key mapping to
    "stop" rather than "stop_sequences" which is the correct key [Bedrock
    docs
    link](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-mistral.html)
    `{
        "prompt": string,
        "max_tokens" : int,
        "stop" : [string],    
        "temperature": float,
        "top_p": float,
        "top_k": int
    }`
    - **Issue:** #20053 
    - **Dependencies:** N/A
    - **Twitter handle:** N/a
    jonathancaevans committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    ea43c66 View commit details
    Browse the repository at this point in the history
  4. community[patch]: allows using text-generation-inference /generate …

    …route with `HuggingFaceEndpoint` (#20100)
    
    - **Description:** allows to use the /generate route of
    `text-generation-inference` with the `HuggingFaceEndpoint`
    AIexanderDicke committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    d7e1275 View commit details
    Browse the repository at this point in the history
  5. community[minor]: add mintbase loader to langchain (#20089)

    - [x] **Add Near NFT loader**: "community: Load NFT near block chain
    using mintbase graph API"
    
    - [x] **PR message**: 
        - **Description:** a description of the change
        - **Twitter handle:**Kurodenjiro
    
    ---------
    
    Co-authored-by: Bagatur <[email protected]>
    Co-authored-by: Bagatur <[email protected]>
    3 people committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    fa4124b View commit details
    Browse the repository at this point in the history
  6. [Core] Feat Pretty Print Tool calls (#20997)

    Right now, `tool_calls` are not included in the `pretty_print()` output.
    Would be nice to show!
    
    
    ![image](https://github.com/langchain-ai/langchain/assets/13333726/6a0ffca3-d02f-4e18-bc76-513eeca2e964)
    hinthornw committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    db14d43 View commit details
    Browse the repository at this point in the history
  7. docs: Bump cassio min version in docs (#21081)

    Cassio 0.6+ is recommended for async vector store (not blocking on
    getting the embedding dimension) and for hybrid search support.
    cbornet committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    d6e9bd3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5c77f45 View commit details
    Browse the repository at this point in the history
  9. langchain[patch]: Update handling of deprecation warnings (#21083)

    Chains should not be emitting deprecation warnings.
    eyurtsev committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    845d8e0 View commit details
    Browse the repository at this point in the history
  10. [Patch] Dedent docstring (#20959)

    Technically a slight prompt breaking change, but I think positive EV in
    that it saves tokens and results in more sane / in-distribution prompts
    hinthornw committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    5c63ac3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c8f18a2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    efe27ef View commit details
    Browse the repository at this point in the history
  13. core: release 0.1.47 (#21094)

    efriis committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    748f2ba View commit details
    Browse the repository at this point in the history
  14. multiple: Remove unnecessary Ruff suppression comments (#21050)

    ## Summary
    
    I ran `ruff check --extend-select RUF100 -n` to identify `# noqa`
    comments that weren't having any effect in Ruff, and then `ruff check
    --extend-select RUF100 -n --fix` on select files to remove all of the
    unnecessary `# noqa: F401` violations. It's possible that these were
    needed at some point in the past, but they're not necessary in Ruff
    v0.1.15 (used by LangChain) or in the latest release.
    
    Co-authored-by: Erick Friis <[email protected]>
    charliermarsh and efriis committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8f38b7a View commit details
    Browse the repository at this point in the history
  15. core[minor],langchain[patch],community[patch]: Move storage interface…

    …s to core (#20750)
    
    * Move storage interface to core
    * Move in memory and file system implementation to core
    eyurtsev committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    3c064a7 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    b9c53e9 View commit details
    Browse the repository at this point in the history
  17. community[patch]: Skip unexpected 404 HTTP Error in Arxiv download (#…

    …21042)
    
    ### Description:
    When attempting to download PDF files from arXiv, an unexpected 404
    error frequently occurs. This error halts the operation, regardless of
    whether there are additional documents to process. As a solution, I
    suggest implementing a mechanism to ignore and communicate this error
    and continue processing the next document from the list.
    
    Proposed Solution: To address the issue of unexpected 404 errors during
    PDF downloads from arXiv, I propose implementing the following solution:
    
    - Error Handling: Implement error handling mechanisms to catch and
    handle 404 errors gracefully.
    - Communication: Inform the user or logging system about the occurrence
    of the 404 error.
    - Continued Processing: After encountering a 404 error, continue
    processing the remaining documents from the list without interruption.
    
    This solution ensures that the application can handle unexpected errors
    without terminating the entire operation. It promotes resilience and
    robustness in the face of intermittent issues encountered during PDF
    downloads from arXiv.
    
    ### Issue:
    #20909 
    ### Dependencies:
    none
    
    ---------
    
    Co-authored-by: Bagatur <[email protected]>
    jkpawlowski96 and baskaryan committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    b0b1a67 View commit details
    Browse the repository at this point in the history
  18. community[patch]: Using the right encoding to parse the web page in R…

    …ecursiveUrlLoader (#20632)
    
    As shown in #13749 , `RecursiveUrlLoader` has encoding issue. This PR is
    to solve this.
    
    ---------
    
    Co-authored-by: Bagatur <[email protected]>
    Co-authored-by: Bagatur <[email protected]>
    3 people committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    f1c3687 View commit details
    Browse the repository at this point in the history
  19. community[minor]: bump version of LayerupSecurity, add support for un…

    …trusted_input parameter (#19985)
    
    **Description:** update version of LayerupSecurity package for the
    Layerup Security integration. Add untrusted_input parameter.
    JamsheedMistri committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    3e74936 View commit details
    Browse the repository at this point in the history
  20. partner[patch]: Upgrade to Ruff v0.4.2 (#21108)

    ## Summary
    
    No new diagnostics (given that the set of enabled rules hasn't changed),
    but gains access to our new parser (much faster) and reduced false
    positives all around.
    charliermarsh committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    fd94aa8 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    dbdfa3d View commit details
    Browse the repository at this point in the history
  22. core: release 0.1.48 (#21113)

    efriis committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    2407c35 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    8a62fb0 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    aec13a6 View commit details
    Browse the repository at this point in the history
  25. langchain[patch]: Migrate document transformers (#21098)

    Migrate document transformers
    eyurtsev committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    9b6d04a View commit details
    Browse the repository at this point in the history
  26. langchain[patch]: Upgrade prompts to optional imports (#21078)

    Upgrades prompts module to use optional imports.
    
    This code was generated with a migration script, but had to be adjusted
    manually a bit.
    
    Testing in preparation for applying this code modification across the
    rest of the modules in langchain package to reverse the dependency
    between langchain community and langchain.
    eyurtsev committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8658d52 View commit details
    Browse the repository at this point in the history
  27. langchain[patch]: Migrate graphs to use optional community imports (#…

    …21100)
    
    Migrate graphs to use optional community imports.
    eyurtsev committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    3853fe9 View commit details
    Browse the repository at this point in the history
  28. langchain[patch]: Migrate output parsers to support optional communit…

    …y imports (#21103)
    
    Migrate output parsers
    eyurtsev committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    9e788f0 View commit details
    Browse the repository at this point in the history
  29. langchain[patch]: Migrate tools to treat community imports as optional (

    #21117)
    
    Migrate tools to treat community imports as optional
    eyurtsev committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    e4f51f5 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    bf95414 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    5f8a307 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    6c938da View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    14422a4 View commit details
    Browse the repository at this point in the history
  34. docs: format (#21132)

    baskaryan committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    6d3e9ea View commit details
    Browse the repository at this point in the history
  35. docs: minor changes in sambanova community integration docs (#21129)

    - **Description:** minor changes in sambanova community integration
    notebook docs
    
    ---------
    
    Co-authored-by: Renate Kempf <[email protected]>
    Co-authored-by: Bagatur <[email protected]>
    3 people committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    3441a11 View commit details
    Browse the repository at this point in the history
  36. community[patch]: add delete() method to AzureSearch vector store (#2…

    …1127)
    
    **Issue:**
    Currently `AzureSearch` vector store does not implement `delete` method.
    This PR implements it. This also makes it compatible with LangChain
    indexer.
    
    **Dependencies:**
    None
    
    **Twitter handle:**
    @martintriska1
    
    ---------
    
    Co-authored-by: Bagatur <[email protected]>
    MacanPN and baskaryan committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    0f7f448 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

  1. openai[patch]: fix special token default behavior (#21131)

    By default handle special sequences as regular text
    baskaryan committed May 1, 2024
    Configuration menu
    Copy the full SHA
    bef50de View commit details
    Browse the repository at this point in the history
  2. upstage[minor]: Update few codes and add upstage loader in pdf section (

    #21085)
    
    **Description:** Update UpstageLayoutAnalysisParser and Loader and add
    upstage loader example in pdf section
    **Dependencies:** langchain_community
    **Twitter handle:** [@UpstageAI](https://twitter.com/upstageai)
    
    - [x] **Add tests and docs**: 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/docs/integrations` directory.
    
    
    - [x] **Lint and test**: Run `make format`, `make lint` and `make test`
    from the root of the package(s) you've modified. See contribution
    guidelines for more: https://python.langchain.com/docs/contributing/
    
    Additional guidelines:
    - Make sure optional dependencies are imported within a function.
    - Please do not add dependencies to pyproject.toml files (even optional
    ones) unless they are required for unit tests.
    - Most PRs should not touch more than one package.
    - Changes should be backwards compatible.
    - If you are adding something to community, do not re-import it in
    langchain.
    
    If no one reviews your PR within a few days, please @-mention one of
    baskaryan, efriis, eyurtsev, hwchase17.
    junkeon committed May 1, 2024
    Configuration menu
    Copy the full SHA
    8d2909e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c9e96bb View commit details
    Browse the repository at this point in the history
  4. docs: updated docs on langchain_google_community (#21064)

    Thank you for contributing to LangChain!
    
    - [ ] **PR title**: "docs: updated docs on langchain_google_community"
    
    
    - [ ] **PR message**:
        - **Description:** updated docs on langchain_google_community
    lkuligin committed May 1, 2024
    Configuration menu
    Copy the full SHA
    a36935b View commit details
    Browse the repository at this point in the history
  5. docs: remove repetitive words (#21058)

    
    remove repetitive words
    
    Co-authored-by: Bagatur <[email protected]>
    tianzedavid and baskaryan committed May 1, 2024
    Configuration menu
    Copy the full SHA
    5a89094 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    67e6744 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7860e4c View commit details
    Browse the repository at this point in the history
  8. community[patch]: update package name to bagelML (#19948)

    **Description**
    This pull request updates the Bagel Network package name from
    "betabageldb" to "bagelML" to align with the latest changes made by the
    Bagel Network team.
    
    The following modifications have been made:
    
    - Updated all references to the old package name ("betabageldb") with
    the new package name ("bagelML") throughout the codebase.
    - Modified the documentation, and any relevant scripts to reflect the
    package name change.
    - Tested the changes to ensure that the functionality remains intact and
    no breaking changes were introduced.
    
    By merging this pull request, our project will stay up to date with the
    latest Bagel Network package naming convention, ensuring compatibility
    and smooth integration with their updated library.
    
    Please review the changes and provide any feedback or suggestions. Thank
    you!
    ihpolash committed May 1, 2024
    Configuration menu
    Copy the full SHA
    1fdf63f View commit details
    Browse the repository at this point in the history
  9. experimental: clean python repl input(experimental:Added code for Pyt…

    …honREPL) (#20930)
    
    Update python.py(experimental:Added code for PythonREPL)
    
    Added code for PythonREPL, defining a static method 'sanitize_input'
    that takes the string 'query' as input and returns a sanitizing string.
    The purpose of this method is to remove unwanted characters from the
    input string, Specifically:
    
    1. Delete the whitespace at the beginning and end of the string (' \s').
    2. Remove the quotation marks (`` ` ``) at the beginning and end of the
    string.
    3. Remove the keyword "python" at the beginning of the string (case
    insensitive) because the user may have typed it.
    
    This method uses regular expressions (regex) to implement sanitizing.
    
    It all started with this code:
    from langchain.agents import Tool
    from langchain_experimental.utilities import PythonREPL
    
    python_repl = PythonREPL()
    repl_tool = Tool(
        name="python_repl",
    description="Remove redundant formatting marks at the beginning and end
    of source code from input.Use a Python shell to execute python commands.
    If you want to see the output of a value, you should print it out with
    `print(...)`.",
        func=python_repl.run,
    )
    
    When I call the agent to write a piece of code for me and execute it
    with the defined code, I must get an error: SyntaxError('invalid
    syntax', ('<string>', 1, 1,'In', 1, 2))
    
    After checking, I found that pythonREPL has less formatting of input
    code than the soon-to-be deprecated pythonREPL tool, so I added this
    step to it, so that no matter what code I ask the agent to write for me,
    it can be executed smoothly and get the output result.
    I have tried modifying the prompt words to solve this problem before,
    but it did not work, and by adding a simple format check, the problem is
    well resolved.
    <img width="1271" alt="image"
    src="https://github.com/langchain-ai/langchain/assets/164149097/c49a685f-d246-4b11-b655-fd952fc2f04c">
    
    ---------
    
    Co-authored-by: Bagatur <[email protected]>
    Co-authored-by: Bagatur <[email protected]>
    3 people committed May 1, 2024
    Configuration menu
    Copy the full SHA
    3b473d1 View commit details
    Browse the repository at this point in the history
  10. community[patch]: Update comments for lazy_load method (#21063)

    - [ ] **PR message**: 
    - **Description:** Refactored the lazy_load method to use asynchronous
    execution for improved performance. The method now initiates scraping of
    all URLs simultaneously using asyncio.gather, enhancing data fetching
    efficiency. Each Document object is yielded immediately once its content
    becomes available, streamlining the entire process.
        - **Issue:** N/A
    - **Dependencies:** Requires the asyncio library for handling
    asynchronous tasks, which should already be part of standard Python
    libraries in Python 3.7 and above.
        - **Email:** [[email protected]](mailto:[email protected])
    
    ---------
    
    Co-authored-by: Bagatur <[email protected]>
    Co-authored-by: Bagatur <[email protected]>
    3 people committed May 1, 2024
    Configuration menu
    Copy the full SHA
    45ddf4d View commit details
    Browse the repository at this point in the history
  11. openai[patch]: add tests for secret_str for keys (#20982)

    **Description:** Add tests to check API keys and Active Directory tokens
    are masked
    **Issue:** Resolves #12165 for OpenAI and Azure OpenAI models
    **Dependencies:** None
    
    Also resolves #12473 which may be closed.
    
    Additional contributors @alex4321 (#12473) and @onesolpark (#12542)
    sepiatone committed May 1, 2024
    Configuration menu
    Copy the full SHA
    12b1caf View commit details
    Browse the repository at this point in the history
  12. infra: Sync devcontainer.json and compose file mount location (#20461)

    **Sync the config in `devcontainer.json` and `docker-compose.yml`**
    
    Issue: when opening the current `master` branch in a dev container in VS
    Code, I get the following message as VS Code cannot find the mounted
    source folder:
    
    
    ![image](https://github.com/langchain-ai/langchain/assets/1824461/41cf20c0-d1e0-4648-9578-edf80b99c2db)
    
    Opening in a GitHub Codespace works (it seems to ignore the mounts in
    the `docker-compose.yml`.
    
    This PR updates the mount in `docker-compose.yml` and the config in
    `devcontainer.json` so that the two align.
    
    I have tested these changes in GitHub Codespaces and a VS Code dev
    container and both loaded successfully.
    
    Co-authored-by: Bagatur <[email protected]>
    stuartleeks and baskaryan committed May 1, 2024
    Configuration menu
    Copy the full SHA
    8a01760 View commit details
    Browse the repository at this point in the history
  13. docs: Docs (sample notebook) for Vertex DIY RAG Ranking API (#21054)

    Vertex DIY RAG APIs helps to build complex RAG systems and provide more
    granular control, and are suited for custom use cases.
    
    The Ranking API takes in a list of documents and reranks those documents
    based on how relevant the documents are to a given query. Compared to
    embeddings that look purely at the semantic similarity of a document and
    a query, the ranking API can give you a more precise score for how well
    a document answers a given query.
    
    
    [Reference](https://cloud.google.com/generative-ai-app-builder/docs/ranking)
    
    ---------
    
    Co-authored-by: Bagatur <[email protected]>
    Co-authored-by: Bagatur <[email protected]>
    3 people committed May 1, 2024
    Configuration menu
    Copy the full SHA
    86fe484 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ab55f69 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2fcab9a View commit details
    Browse the repository at this point in the history
  16. ci: Use ruff check in Makefile (#21138)

    ## Summary
    
    `ruff /path/to/file.py` works but is deprecated, and we now recommend
    `ruff check /path/to/file.py` (to match `ruff format /path/to/file.py`).
    charliermarsh committed May 1, 2024
    Configuration menu
    Copy the full SHA
    2b10c4d View commit details
    Browse the repository at this point in the history
  17. langchain[patch]: Migrate chat loaders to optional community imports (#…

    …21089)
    
    Migrate chat loaders to optional community imports
    eyurtsev committed May 1, 2024
    Configuration menu
    Copy the full SHA
    d640605 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    86ff8a3 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    aa0bc74 View commit details
    Browse the repository at this point in the history
  20. langchain[patch],community[minor]: Move graph index creator (#20795)

    Move graph index creator to community
    eyurtsev committed May 1, 2024
    Configuration menu
    Copy the full SHA
    1ce1a10 View commit details
    Browse the repository at this point in the history
  21. community[minor]: Rememberizer retriever (#20052)

    **Description:**
    This pull request introduces a new feature for LangChain: the
    integration with the Rememberizer API through a custom retriever.
    This enables LangChain applications to allow users to load and sync
    their data from Dropbox, Google Drive, Slack, their hard drive into a
    vector database that LangChain can query. Queries involve sending text
    chunks generated within LangChain and retrieving a collection of
    semantically relevant user data for inclusion in LLM prompts.
    User knowledge dramatically improved AI applications.
    The Rememberizer integration will also allow users to access general
    purpose vectorized data such as Reddit channel discussions and US
    patents.
    
    **Issue:**
    N/A
    
    **Dependencies:**
    N/A
    
    **Twitter handle:**
    https://twitter.com/Rememberizer
    ea-open-source committed May 1, 2024
    Configuration menu
    Copy the full SHA
    2a6f78a View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    4d1c21d View commit details
    Browse the repository at this point in the history
  23. 👥 Update LangChain people data (#21143)

    👥 Update LangChain people data
    
    Co-authored-by: github-actions <[email protected]>
    jacoblee93 and github-actions committed May 1, 2024
    Configuration menu
    Copy the full SHA
    bd38073 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    0e5bf16 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    8b4b75e View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    b879184 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    7a39fe6 View commit details
    Browse the repository at this point in the history
  28. partners: AI21 Labs Jamba Support (#20815)

    Description: Added support for AI21 new model - Jamba
    Twitter handle: https://github.com/AI21Labs
    
    ---------
    
    Co-authored-by: Asaf Gardin <[email protected]>
    Co-authored-by: Erick Friis <[email protected]>
    3 people committed May 1, 2024
    Configuration menu
    Copy the full SHA
    642975d View commit details
    Browse the repository at this point in the history
  29. ai21: release 0.1.4 (#21151)

    efriis committed May 1, 2024
    Configuration menu
    Copy the full SHA
    daab978 View commit details
    Browse the repository at this point in the history
  30. langchain[patch]: Migrate top level files to use optional langchain c…

    …ommunity (#21152)
    
    Migrate a few top level files to treat langchain community as an optional dependency
    eyurtsev committed May 1, 2024
    Configuration menu
    Copy the full SHA
    7230e43 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    2f709d9 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    59f10ab View commit details
    Browse the repository at this point in the history
  33. langchain[patch]: Update some agent tool kits to handle community imp…

    …ort as optional (#21157)
    
    A few things that were not caught by the migration script
    eyurtsev committed May 1, 2024
    Configuration menu
    Copy the full SHA
    43110da View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    bec3eee View commit details
    Browse the repository at this point in the history
  35. langchain[patch]: Migrate utils to use optional langchain_community (#…

    …21163)
    
    Migrate utils to use optional imports from langchain community
    eyurtsev committed May 1, 2024
    Configuration menu
    Copy the full SHA
    23c5d87 View commit details
    Browse the repository at this point in the history
  36. langchain[patch]: Fix how the serializable test identifies serializab…

    …le objects (#21165)
    
    dir() will not work if we're using optional imports. The only way to do this is by using contents of __all__
    eyurtsev committed May 1, 2024
    Configuration menu
    Copy the full SHA
    2914abd View commit details
    Browse the repository at this point in the history
  37. langchain[patch]: Migrate chat models to optional community imports (#…

    …21090)
    
    Migrate chat models to optional community imports
    eyurtsev committed May 1, 2024
    Configuration menu
    Copy the full SHA
    57e8e70 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    9932f49 View commit details
    Browse the repository at this point in the history
  39. langchain[patch],community[minor]: Move load_tools to community (#21158)

    Move load tools to community
    eyurtsev committed May 1, 2024
    Configuration menu
    Copy the full SHA
    44602bd View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    0694538 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    9e53fa7 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    23fdd32 View commit details
    Browse the repository at this point in the history
  43. langchain[patch]: Migrate more code in utils to use optional langchai…

    …n import (#21166)
    
    Moving is interactive util to avoid circular deps
    eyurtsev committed May 1, 2024
    Configuration menu
    Copy the full SHA
    94a8387 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    6fa8626 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. infra: cleanup docs build (#21134)

    Refactors the docs build in order to:
    - run the same `make build` command in both vercel and local build
    - incrementally build artifacts in 2 distinct steps, instead of building
    all docs in-place (in vercel) or in a _dist dir (locally)
    
    Highlights:
    - introduces `make build` in order to build the docs
    - collects and generates all files for the build in
    `docs/build/intermediate`
    - renders those jupyter notebook + markdown files into
    `docs/build/outputs`
    
    And now the outputs to host are in `docs/build/outputs`, which will need
    a vercel settings change.
    
    Todo:
    - [ ] figure out how to point the right directory (right now deleting
    and moving docs dir in vercel_build.sh isn't great)
    efriis committed May 2, 2024
    Configuration menu
    Copy the full SHA
    cd4c542 View commit details
    Browse the repository at this point in the history
  2. langchain[patch]: Update more code to use langchain community as an o…

    …ptional dependency (#21170)
    
    More code to use langchain community as an optional dependency
    eyurtsev committed May 2, 2024
    Configuration menu
    Copy the full SHA
    c306364 View commit details
    Browse the repository at this point in the history
  3. langchain[patch],community[minor]: Move some unit tests from langchai…

    …n to community, use core for fake models (#21190)
    eyurtsev committed May 2, 2024
    Configuration menu
    Copy the full SHA
    c9119b0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b5c3a04 View commit details
    Browse the repository at this point in the history
  5. langchain[patch],community[minor]: Migrate memory implementations to …

    …community (#20845)
    
    Migrates memory implementations to community
    eyurtsev committed May 2, 2024
    Configuration menu
    Copy the full SHA
    3cd7fce View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bd5d2c2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    df49404 View commit details
    Browse the repository at this point in the history
  8. core[patch]: Fixes for convert_messages (#21207)

    - support two-tuples of any sequence type (eg. json.loads never produces
    tuples)
    - support type alias for role key
    - if id is passed in in dict form use it
    - if tool_calls passed in in dict form use them
    
    ---------
    
    Co-authored-by: Bagatur <[email protected]>
    nfcampos and baskaryan committed May 2, 2024
    Configuration menu
    Copy the full SHA
    663747b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d297d90 View commit details
    Browse the repository at this point in the history
  10. community[patch]: Update lancedb.py (#21192)

    very minor update in LanceDB integration, 'metric' argument was missing.
    raghavdixit99 committed May 2, 2024
    Configuration menu
    Copy the full SHA
    7d451d0 View commit details
    Browse the repository at this point in the history
  11. docs: Added documentation on Anthropic models on vertex (#21070)

    Description:Added documentation on Anthropic models on Vertex
    @lkuligin for review
    
    ---------
    
    Co-authored-by: [email protected] <[email protected]>
    Adi8885 and [email protected] committed May 2, 2024
    Configuration menu
    Copy the full SHA
    ee2c55c View commit details
    Browse the repository at this point in the history
  12. infra: Undo gh cache removal (#21210)

    Co-authored-by: Nuno Campos <[email protected]>
    baskaryan and nfcampos committed May 2, 2024
    Configuration menu
    Copy the full SHA
    b00fd1d View commit details
    Browse the repository at this point in the history
  13. community[patch]: Refactor CassandraDatabase wrapper (#21075)

    * Introduce individual `fetch_` methods for easier typing.
    * Rework some docstrings to google style
    * Move some logic to the tool
    * Merge the 2 cassandra utility files
    cbornet committed May 2, 2024
    Configuration menu
    Copy the full SHA
    683fb45 View commit details
    Browse the repository at this point in the history
  14. partners(mistralai): Removing unused variable in completion request (…

    …using tool_calls or content) (#21201)
    
    This PR fixes #21196.
    
    The error was occurring when calling chat completion API with a chat
    history. Indeed, the Mistral API does not accept both `content` and
    `tool_calls` in the same body.
    
    This PR removes one of theses variables depending on the necessity.
    
    ---------
    
    Co-authored-by: Maxime Perrin <[email protected]>
    Co-authored-by: Chester Curme <[email protected]>
    3 people committed May 2, 2024
    Configuration menu
    Copy the full SHA
    1ebb5a7 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2d77e5e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    eb0a2fd View commit details
    Browse the repository at this point in the history
  17. langchain: fix syntax error in code comment for create_tool_calling_a…

    …gent (#21205)
    
    **PR message**:
    - **Description:** Corrected a syntax error in the code comments within
    the `create_tool_calling_agent` function in the langchain package.
    - **Issue:** N/A
    - **Dependencies:** No additional dependencies required.
    - **Twitter handle:** N/A
    xindoo committed May 2, 2024
    Configuration menu
    Copy the full SHA
    c1aa237 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    aa9faa8 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6ac6158 View commit details
    Browse the repository at this point in the history
  20. core: tracer: remove numeric execution order (#21220)

    - this hasn't been used in a long time and requires some additional
    bookkeeping i'm going to streamline in the next pr
    nfcampos committed May 2, 2024
    Configuration menu
    Copy the full SHA
    47ce8d5 View commit details
    Browse the repository at this point in the history
  21. core: release 0.1.50 (#21230)

    efriis committed May 2, 2024
    Configuration menu
    Copy the full SHA
    c1eb95b View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Configuration menu
    Copy the full SHA
    67a5cc3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    70bde15 View commit details
    Browse the repository at this point in the history
  3. docs: Update Nvidia documentation (#21240)

    Updating Nvidia docs ahead for 5/15 competition. 
    
    Thanks!
    dglogo committed May 3, 2024
    Configuration menu
    Copy the full SHA
    c3d169a View commit details
    Browse the repository at this point in the history
  4. docs: Fix comment within "handle long text" example (#21248)

    The current doc-string comment is referring to the wrong schema.
    andyjessen committed May 3, 2024
    Configuration menu
    Copy the full SHA
    64e17bd View commit details
    Browse the repository at this point in the history
  5. Hotfix RetrievalQA Docs: docs: Fix formatting (#21183)

    # Newline Characters breaking formatting 
    
    **Description**: 
    As you can see in the image below, the formatting in the documentation
    is broken. As far as I can see the two added `\n` characters are
    breaking the documentation. Therefore I would propose to remove those
    
    ![image](https://github.com/langchain-ai/langchain/assets/88305668/23b6e726-71b2-4812-91ea-3e8600683733)
    
    **Dependencies**:
    None
    
    **Twitter Handle**
    - epu9byj
    
    ---------
    
    Co-authored-by: gere <[email protected]>
    Co-authored-by: Chester Curme <[email protected]>
    3 people committed May 3, 2024
    Configuration menu
    Copy the full SHA
    3a8d1d8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2fbe82f View commit details
    Browse the repository at this point in the history
  7. merge

    ccurme committed May 3, 2024
    Configuration menu
    Copy the full SHA
    6c67e83 View commit details
    Browse the repository at this point in the history
  8. 🦍

    ccurme committed May 3, 2024
    Configuration menu
    Copy the full SHA
    dfa9a7f View commit details
    Browse the repository at this point in the history
  9. update Makefile

    ccurme committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d604a65 View commit details
    Browse the repository at this point in the history
  10. update makefile

    ccurme committed May 3, 2024
    Configuration menu
    Copy the full SHA
    4336929 View commit details
    Browse the repository at this point in the history