Commit Graph

1192 Commits

Author SHA1 Message Date
Tat Dat Duong 1df22ce294 Fix issues with yarn berry stuck during yarn add 2023-05-30 00:14:17 +02:00
Tat Dat Duong 71c0e95590 Remove unused CI flag 2023-05-29 23:36:21 +02:00
Tat Dat Duong bf422f37ea Prevent race-condition by having separate cache per job 2023-05-29 18:06:41 +02:00
Tat Dat Duong aa1506926b Reuse same cache from github actions 2023-05-29 12:27:59 +02:00
Tat Dat Duong 864a1c0ecb ci: ensure ci step uses yarn 2.x, cache dependencies 2023-05-29 00:53:26 +02:00
Jacob Lee 0c9db11543 Merge pull request #1431 from jacoblee93/docs
Adds separate docs page for custom tools
2023-05-27 17:24:49 -07:00
jacoblee93 6228b6fdce Adds separate page for custom tools 2023-05-27 15:57:03 -07:00
Jacob Lee 6c5d3064e8 Merge pull request #1425 from DanielPopOut/patch-1
Remove outdated remark in docs/modules/models/chat/index.mdx
2023-05-26 17:40:58 -07:00
DanielPopOut fbfb4f6103 Remove outdated remark in docs/modules/models/chat/index.mdx
According to the docs there is more than ChatOpenAi model only --> ChatAnthropic etc...

What was removed:
"Note: Currently, the only chat-based model we support is ChatOpenAI (with gpt-4 and gpt-3.5-turbo), but anticipate adding more in the future."
2023-05-26 18:22:24 -04:00
Jacob Lee b4376001a2 Merge pull request #1424 from hwchase17/release
Release 0.0.84
2023-05-26 13:48:57 -07:00
jacoblee93 de738af6dc Release 0.0.84 2023-05-26 13:43:17 -07:00
Jacob Lee dc948fce4f Tigris vectorstore (#1423)
* Add Tigris Vector Store

* review feedback

* Skip integration test, small docs update

* Remove unused example

* Revert build artifact change

* Remove build artifact

---------

Co-authored-by: Ovais Tariq <ot@tigrisdata.com>
Co-authored-by: Ovais Tariq <ovaistariq@gmail.com>
2023-05-26 12:52:36 -07:00
Orgil da6320ac3c feat: notion db loader (#1342)
* wip notion db loader

* add notiondb entrypoint

* add notiodb files to .gitignore

* add notiondb to tsconfig

* add notiondb doc

* add notiondb test and example

* update entrypoint

* little refactor

* rename notiondb.md to notiondb.mdx

* add NOTION_INTEGRATION_TOKEN env

* add page size configureable and read token from env

* make params optional

* update init notion db loader

* Change NotionDB unit test to integration test, update docs, polish

* Fix typo in docs

* Fix typo

* Use new environment variable method

* Update docs

* Merge

* Merge

---------

Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2023-05-26 12:35:53 -07:00
Steven Tsao 96038e3926 Add latex text splitter (#1127)
* Add latex text splitter

* update

* Correct tests

* Add docs and example for LatexTextSplitter

* Lint + format

* Fix test

* remove log

---------

Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2023-05-26 12:04:49 -07:00
Priya X. Pramesi 16c8292c28 Allow passing options to LLM chains inside MultiRetrievalQAChain and MultiPromptChain. (#1325)
* added options for multi chains

* changed examples

* moved multi ret qa and multi prompt fromRetrievers and fromPrompts to inside the function

* Deprecate old MultiRetrievalQAChain and MultiPromptChain factory methods

---------

Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2023-05-26 12:03:51 -07:00
Orgil a7dfabdab1 feat: add figma loader (#1148)
* wip figma file loader

* add figma env to .env.sample

* update FigmaFile ts

* fix format

* add figma to entry-points

* add figma doc and example

* include figma files in .gitignore

* add figma to tsconfig.json

* little refactor

* rename md to mdx

* add FIGMA_ACCESS_TOKEN to .env.example

* update figma example and int test

* Update Figma loader args, test case, examples, and docs

---------

Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2023-05-26 12:02:17 -07:00
Fan 70ac7c41e6 fix: #1383 update faiss-node to avoid libomp missing (#1420) 2023-05-26 11:36:58 -07:00
Jacob Lee 7e28758229 Factor out and wrap environment variable access in a try/catch (#1413)
* Factor out and wrap environment variable access in a try/catch

* Fix accessed env vars in chat-openai.ts class
2023-05-26 09:57:46 -07:00
Gökhan Geyik 7d94ec1413 fix: intermediateSteps undefined problem. (#1415) 2023-05-25 15:49:12 -07:00
Jacob Lee 17bfe9b0a2 Merge pull request #1411 from hwchase17/release
Release 0.0.83
2023-05-25 09:50:47 -07:00
jacoblee93 246cc74ce0 Release 0.0.83 2023-05-25 09:48:28 -07:00
VJSai 1ae001ce48 fix: fixed export of APIChainOptions (#1410)
* fix: fixed export of APIChainOptions

* Formatting

---------

Co-authored-by: Vijay Sai <vijaysaijnv@gamil.com>
Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
2023-05-25 09:34:13 -07:00
Jacob Lee 8ecfcce918 Merge pull request #1322 from kushp/export-calculate-max-tokens
Export calculateMaxTokens
2023-05-24 23:52:07 -07:00
Jacob Lee d331811f8d Merge pull request #1403 from jacoblee93/hotfix
Adds pull request template, update docs
2023-05-24 23:33:30 -07:00
Kush Patel e71075294f Export calculateMaxTokens 2023-05-24 22:18:13 -07:00
Jacob Lee 18f98b16a6 Adds pull request template, update docs 2023-05-24 21:49:53 -07:00
Jacob Lee 8a0b2b7777 Merge pull request #1402 from jacoblee93/hotfix
Google Vertex AI docs update
2023-05-24 17:46:16 -07:00
Jacob Lee 72a40526c8 Google Vertex AI docs update 2023-05-24 17:33:13 -07:00
Jacob Lee 46f0ca5d87 Merge pull request #1401 from hwchase17/release
Release
2023-05-24 17:17:12 -07:00
Jacob Lee bb2159e4fe Release 0.0.82 2023-05-24 17:15:58 -07:00
Jacob Lee b0a7b1c8d0 Fix integration test snapshot 2023-05-24 17:04:46 -07:00
Jacob Lee ded81a3439 Adds Qdrant vector store (#1396)
* feat: add qdrant vertorstore

* feat: add test case

* chore: update package.json

* update qdrant config

* Fix bugs, naming issues, use examples in docs

* Adds Qdrant as a dependency in examples

* Update docs, remove unneeded dep in examples

---------

Co-authored-by: ppxu <xyang0110@126.com>
2023-05-24 16:53:52 -07:00
Allen Firstenberg 2b6e328077 Feature: Google Vertex AI Chat model (#1384)
* Google Vertex AI Chat model

* Simplify Google Vertex AI chat class, use more LangChain conventions

* Adds chat_models/googlevertexai to optional dependencies

* Fix example, fix build

* Clarify docs

* Formatting

* Docs styling

---------

Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
2023-05-24 16:45:34 -07:00
Jacob Lee 1f787a6ec5 Add API chain (#1400)
* adding initial API chain code

* lint fix

* add docs and example

* Update file structure, move around parameters and TS types

* Slightly shorten APIChain example for consistency

---------

Co-authored-by: Larry Anderson <larryboymi@hotmail.com>
2023-05-24 16:39:34 -07:00
Henrique Dantas 052664c1b1 feat: Created Upstash Redis Chat Memory for Edge and Serverless environments (#1346)
* installed @upstash/redis

* updating .env.example with upstash redis vars

* feat: created RedisUpstashChatMessageHistory based on RedisChatMessageHistory

* test: adding tests based on redis tests

* docs: adding docs with examples for upstash redis

* adding @upstash/redis as examples dependency

* adding stores/message/redis_upstash to langchain .gitignore

* adding stores/message/redis_upstash to langchain package.json files, peerDependenciesMeta and exports

* adding stores/message/redis_upstash to langchain tsconfig.json

* adding stores/message/redis_upstash to create-entrypoint.js

* adding @upstash/redis to examples yarn.lock

* moving @upstash/redis peerDependenciesMeta to correct order

* updating main yarn.lock with @upstash/redis

* lint: adding missing semicolon to import

* adding eslint-disable lines to redis_upstash int test file

* moving typedocOptions redis_upstash to the correct place

* docs: improvements to redis_upstash docs

* Change Upstash Redis naming, update docs

* Fix Upstash Redis constructor config types

---------

Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
2023-05-24 16:30:52 -07:00
yi 7fec78b0ec Added google custom search as a tool (#1260)
* Added google custom search as a tool

* Google Custom Search API tool docs, test, small parameter change

* Make Google custom search tool read from environment variables if possible, change param names

* Fix typo

---------

Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
2023-05-24 16:21:35 -07:00
Allen Firstenberg dc7bfd80b6 Feature: Google Vertex AI Embeddings model (#1388)
* Fix type definition of an array

* Impement GoogleVertexAIEmbeddings

* GoogleVertexAIEmbeddings documentation and examples

* Create entrypoints, minor renaming and docs update

* Make response nullable for more graceful failures

* Format

---------

Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
2023-05-24 16:07:44 -07:00
Emil Sedgh 151ee49c5a Scrape all pages, not only level 1 navigation (#1191)
* Use sitemap to properly load all paths

Gitbook's server-side rendering means that when we fetch the contents of the index page
the sub-menu items are not rendered and thus are invisible to $('nav a').
This patch makes the loader use sitemap.xml which has an index of all pages.

Inspired by the Python version.

* Fix lint issues

* Fix the logic

* Add the integration test provided by jacoblee93

* Fix loading the docs

* Fix formatting
2023-05-24 14:39:17 -07:00
Seunghun Shin c661eec7e9 Update index.md (#1397) 2023-05-24 11:09:39 -07:00
Nuno Campos 5af619fd89 Fix ternary (#1393) 2023-05-24 10:52:04 -07:00
David Humphrey 01673d8496 Allow passing Anthropic apiUrl to ChatAnthropic constructor (#1391) 2023-05-24 09:32:52 -07:00
Jacob Lee d5cee57473 Add docs on hidden faiss-node dependency, change unit test to an integration test (#1385)
* Add docs on hidden faiss-node dependency, change unit test to an integration test

* Switch comment to the correct test

* Fix integration test
2023-05-23 17:55:25 -07:00
Jacob Lee 29b69455ba Update lockfile (#1381) 2023-05-23 12:52:56 -07:00
Jacob Lee d621c8467c Merge pull request #1380 from hwchase17/release
Release
2023-05-23 11:58:46 -07:00
Jacob Lee 30e654241d Release 0.0.81 2023-05-23 11:57:36 -07:00
Jacob Lee 7e90a28220 Mark peer dependency as optional 2023-05-23 11:46:39 -07:00
Zander Chase 8542ef76f3 Merge pull request #1376 from hwchase17/vwp/ahoy
Update Port Numbers
2023-05-23 11:30:51 -07:00
Jacob Lee fdb6fdf1b2 Update inner README (#1379) 2023-05-23 11:29:59 -07:00
Jacob Lee ef3d7c2111 Merge pull request #1378 from hwchase17/release
Release 0.0.80
2023-05-23 11:20:05 -07:00
Jacob Lee 718ccb3e07 Release 0.0.80 2023-05-23 11:19:00 -07:00