Commit Graph

6164 Commits

Author SHA1 Message Date
amiaxys
0b8cfdd4f0 Merge remote-tracking branch 'origin/Kai-toolkit.py' into Amy-mongo-integration 2023-11-25 15:56:05 -05:00
amiaxys
ac860688d1 fix: linting errors in mongo tools/database 2023-11-25 15:55:57 -05:00
maplepolis
45e4b6a556 Finished mongo toolkit base, prompt, and toolkit 2023-11-23 21:07:56 -05:00
maplepolis
839a9f8f95 Added files 2023-11-23 19:12:57 -05:00
amiaxys
234a8d2579 fix: nonexistent variables/functions + run format for Mongo database 2023-11-23 19:11:42 -05:00
Haoming Hu
079d20cfe6 Merge pull request #1 from Haoming-jpg/Haoming-tool.py
Haoming tool.py
2023-11-23 16:45:48 -05:00
Haoming-jpg
e26672914c Basic structure of MongoDB tool 2023-11-23 16:45:02 -05:00
Haoming-jpg
227c65b4d3 Merge remote-tracking branch 'origin/dev' into Haoming-tool.py 2023-11-23 16:12:07 -05:00
amiaxys
e286f30f8e Merge upstream dev 2023-11-23 16:11:39 -05:00
Bagatur
65c4ea5067 Revert "INFRA: temp rm master condition (#13753)" (#13759) 2023-11-23 16:06:19 -05:00
Bagatur
fc898d7797 INFRA: temp rm master condition (#13753) 2023-11-23 16:06:19 -05:00
Bagatur
b5f8d6305a IMPROVEMENT: filter global warnings properly (#13754) 2023-11-23 16:06:19 -05:00
William FH
68e7f81686 Add Batch Size kwarg to the llm start callback (#13483)
So you can more easily use the token counts directly from the API
endpoint for batch size of 1
2023-11-23 16:06:19 -05:00
Bagatur
19a511d19c DOCS: core editable dep api refs (#13747) 2023-11-23 16:06:19 -05:00
Bagatur
132a07592e RELEASE: 0.0.339rc1 (#13746) 2023-11-23 16:06:19 -05:00
Bagatur
4d86bb6894 RELEASE: core 0.0.4 (#13745) 2023-11-23 16:06:19 -05:00
Bagatur
34144e8e6a INFRA: run LC ci after core changes (#13742) 2023-11-23 16:06:19 -05:00
Bagatur
26a85f199b DOCS: fix core api ref build (#13744) 2023-11-23 16:06:19 -05:00
Bagatur
1f37594667 REFACTOR: combine core documents files (#13733) 2023-11-23 16:06:19 -05:00
h3l
7335fdf95e DOCS: Fix typo/line break in python code (#13708) 2023-11-23 16:06:19 -05:00
William FH
6394b1b545 Fix locking (#13725) 2023-11-23 16:06:19 -05:00
Bagatur
094777e10e BUGFIX: add prompt imports for backwards compat (#13702) 2023-11-23 16:06:19 -05:00
Erick Friis
469734f525 TEMPLATES Metadata (#13691)
Co-authored-by: Lance Martin <lance@langchain.dev>
2023-11-23 16:06:19 -05:00
Bagatur
9890396dbf IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-23 16:06:19 -05:00
dandanwei
139d9e7473 BUGFIX: redis vector store overwrites falsey metadata (#13652)
- **Description:** This commit fixed the problem that Redis vector store
will change the value of a metadata from 0 to empty when saving the
document, which should be an un-intended behavior.
  - **Issue:** N/A
  - **Dependencies:** N/A
2023-11-23 16:06:19 -05:00
Bagatur
01dadd679d BUGFIX: llm backwards compat imports (#13698) 2023-11-23 16:06:19 -05:00
Yujie Qian
5dc865539b IMPROVEMENT: VoyageEmbeddings embed_general_texts (#13620)
- **Description:** add method embed_general_texts in VoyageEmebddings to
support input_type
  - **Issue:** 
  - **Dependencies:** 
  - **Tag maintainer:** 
  - **Twitter handle:** @Voyage_AI_
2023-11-23 16:06:19 -05:00
tanujtiwari-at
bc6bde7252 BUGFIX: handle tool message type when converting to string (#13626)
**Description:** Currently, if we pass in a ToolMessage back to the
chain, it crashes with error

`Got unsupported message type: `

This fixes it. 

Tested locally

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
2023-11-23 16:06:19 -05:00
Josep Pon Farreny
622e02571d Added partial_variables to BaseStringMessagePromptTemplate.from_template(...) (#13645)
**Description:** BaseStringMessagePromptTemplate.from_template was
passing the value of partial_variables into cls(...) via **kwargs,
rather than passing it to PromptTemplate.from_template. Which resulted
in those *partial_variables being* lost and becoming required
*input_variables*.

Co-authored-by: Josep Pon Farreny <josep.pon-farreny@siemens.com>
Co-authored-by: Bagatur <baskaryan@gmail.com>
2023-11-23 16:06:19 -05:00
Erick Friis
9ac9c17994 INFRA: Lint for imports (#13632)
- Adds pydantic/import linting to core
- Adds a check for `langchain_experimental` imports to langchain
2023-11-23 16:06:19 -05:00
Erick Friis
6ae39133c1 BUGFIX: anthropic models on bedrock (#13629)
Introduced in #13403
2023-11-23 16:06:19 -05:00
David Ruan
79e1461036 BUGFIX: Update bedrock.py to fix provider bug (#13646)
Provider check was incorrectly failing for anything other than "meta"
2023-11-23 16:06:19 -05:00
Guangya Liu
7af9f67ab7 DOCS: remove openai api key from cookbook (#13633) 2023-11-23 16:06:19 -05:00
Guangya Liu
56859e893c DOCS: fixed import error for BashOutputParser (#13680) 2023-11-23 16:06:19 -05:00
Bagatur
821c308a5d IMPROVEMENT: bump core dep 0.0.3 (#13690) 2023-11-23 16:06:19 -05:00
Bagatur
ab7f41fd99 add callback import test (#13689) 2023-11-23 16:06:19 -05:00
Bagatur
cb8ac333e6 BUG: Add core utils imports (#13688) 2023-11-23 16:06:19 -05:00
Bagatur
545c9f64e7 BUG: more core fixes (#13665)
Fix some circular deps:
- move PromptValue into top level module bc both PromptTemplates and
OutputParsers import
- move tracer context vars to `tracers.context` and import them in
functions in `callbacks.manager`
- add core import tests
2023-11-23 16:06:19 -05:00
William FH
fe4b3c48e3 Update name (#13676) 2023-11-23 16:06:19 -05:00
Erick Friis
16089651fb CLI 0.0.19 (#13677) 2023-11-23 16:06:19 -05:00
Taqi Jaffri
9f98a97390 docugami cookbook (#13183)
Adds a cookbook for semi-structured RAG via Docugami. This follows the
same outline as the semi-structured RAG with Unstructured cookbook:
https://github.com/langchain-ai/langchain/blob/master/cookbook/Semi_Structured_RAG.ipynb

The main change is this cookbook uses Docugami instead of Unstructured
to find text and tables, and shows how XML markup in the output helps
with retrieval and generation.

We are \@docugami on twitter, I am \@tjaffri

---------

Co-authored-by: Taqi Jaffri <tjaffri@docugami.com>
2023-11-23 16:06:19 -05:00
jakerachleff
2cc9cf09ce update langserve to v0.0.30 (#13673)
Upgrade langserve template version to 0.0.30 to include new improvements
2023-11-23 16:06:19 -05:00
jakerachleff
4fd13680df fix templates dockerfile (#13672)
- **Description:** We need to update the Dockerfile for templates to
also copy your README.md. This is because poetry requires that a readme
exists if it is specified in the pyproject.toml
2023-11-23 16:06:19 -05:00
Bagatur
255e67b231 bump 0.0.339rc0 (#13664) 2023-11-23 16:06:19 -05:00
Bagatur
f53e0be4a7 REFACTOR: Refactor langchain_core (#13627)
Changes:
- remove langchain_core/schema since no clear distinction b/n schema and
non-schema modules
- make every module that doesn't end in -y plural
- where easy have 1-2 classes per file
- no more than one level of nesting in directories
- only import from top level core modules in langchain
2023-11-23 16:06:18 -05:00
William FH
6f278120c6 Add error rate (#13568)
To the in-memory outputs. Separate it out from the outputs so it's
present in the dataframe.describe() results
2023-11-23 16:06:18 -05:00
Nuno Campos
63f13a46a2 Use pytest asyncio auto mode (#13643)
<!-- 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.
 -->
2023-11-23 16:06:18 -05:00
Lance Martin
7369d648b1 Add template for gpt-crawler (#13625)
Template for RAG using
[gpt-crawler](https://github.com/BuilderIO/gpt-crawler).

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2023-11-23 16:06:18 -05:00
Bagatur
633e06dbcb REFACTOR: Add core as dep (#13623) 2023-11-23 16:06:18 -05:00
Harrison Chase
308a0d83ef Separate out langchain_core package (#13577)
Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Bagatur <baskaryan@gmail.com>
Co-authored-by: Erick Friis <erick@langchain.dev>
2023-11-23 16:06:18 -05:00