Commit Graph

29 Commits

Author SHA1 Message Date
Nicolas 6fcd138c35 Nick: v102 (#1326) 2023-05-19 15:51:56 +01:00
Nicolas 6dca29768a docs: Mendable search v93 (#1130) 2023-05-05 09:58:23 +01:00
Nuno Campos 90d6740b03 Update typedoc, typedoc markdown plugin 2023-04-18 12:29:44 +01:00
Nicolas 5afca33ed6 Nick: ready 2023-04-12 18:45:08 -04:00
Nuno Campos e728224979 Add test-exports-vite, update docusaurus 2023-04-10 10:01:48 +01:00
Nuno Campos c5b318a9d0 Update typedoc 2023-04-09 15:43:19 +01:00
Nuno Campos 74a07e198b Remove internal things from generated docs 2023-04-09 15:43:19 +01:00
Tyler Alves 6ec08c547f Configure lint-staged precommit on all workspaces (#657)
Only include lint-staged in top-level package.json as outlined in docs:
https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo

Moves lint-staged config to top-level package.json since the same
configuration works for all workspaces. lint-staged discovers the closest
configuration to each staged file, so workspace specific configs can be
added in the future if there are conflicts with the global config.
2023-04-08 14:47:51 +01:00
Nicolas eb9ac79b93 Nick: v79 (#666) 2023-04-08 06:50:35 +01:00
Nuno Campos 72dfe6ca58 Better prettier output in CI (#638) 2023-04-06 07:55:31 +01:00
Nuno Campos 7da1e1994b Remove serpapi dependency given it causes issues with jest (#502)
* Remove serpapi dependency given it causes issues with jest, and this is just a regular http call anyway

* Remove it also from docs, why was this here in the first place
2023-03-28 19:19:34 +01:00
Nuno Campos 6718dec293 Add option for pdf loader to create one document per page (#361)
* Add option for pdf loader to create one document per page

* Update test

* Add to docs, update arg
2023-03-28 10:19:43 +01:00
Nuno Campos 6ecf199a91 Drop support for Node 16 (#493) 2023-03-28 09:41:35 +01:00
Nicolas 23c6a8239f Nick: v57 (#491) 2023-03-28 07:12:48 +01:00
Nicolas 1255de8232 Nick: v47 (#345) 2023-03-16 06:36:31 +00:00
Nuno Campos 008c8e76c9 Make CI output easier to understand by splitting up the tasks (#321)
* Make CI output easier to understand by splitting up the tasks

* Separate ci into separate tasks

* Try again

* Run build explicitly in test task

* Exclude slow docs build from test tasks

* Try to fix filter on windows
2023-03-14 15:02:37 +00:00
Nicolas 9416abc079 Nick: v45 bug fixes (#288) 2023-03-11 08:01:43 +00:00
Nicolas 7ab05cbc41 Nick: keyword search (#274) 2023-03-09 20:08:14 -08:00
Nuno Campos e91a6df05e Nc/docs 8mar (#252)
* Use a more reasonable syntaz highlight theme (the default one does not highlight keywords like import and await)

* Small update to Install instructions

* Add yarn/npm install instructions for any place with a npm install command

* Update contributing doc

* Lint

* Add some more cross links and add an index doc for document loaders

* Add guide on which vector store to pick

* Separate install from getting started

* Lint

* Lint
2023-03-08 23:00:17 +00:00
Ankush Gola c0f391620f Use chat model (#189)
* add base chat models

* starter code for new chains

* Fix tsc issues

* WIP, terrible names (#190)

* add `ChatPrompt` (#197)

* wip add chat prompt template

* add tests

* add export to index

* Refactor LLMChain, add ChatModelChain (#198)

* cr

* add chat model chain

* add load from chat model (#204)

* add load from chat model

* add to chatvectordbchain

* cr

* cr

* fix comment

* use PromptValue

* clear

* fix openai chat model

* llm chain

* fix stuff prompt

* fix build by commenting out old stuff

* format

* consolidate llmresult

* cr

* fix prompts

* rm legacy chains

* export ChatOpenAI

* test and fix chatopenai

* base language model

* refactor schema

* test generate prompt

* revert chains

* format

* fix llm-chain

* add getNumTokens

* add int test for llm chain chat openai

* After merge

* Format

* Add new entrypoints

* Remove console.log

* Remove docs for deprecated model

* Do not clear build artifacts when running tests

* Add docs for chat models

* Add a way of including examples in docs without copy-paste

* hide toc in examples

* Add agent example

* Fix docs build on windows

* Add llm chain example

* Do some more of the serde work

* Add shorthand callPrompt method

* Use .from_ methods to construct prompts

* cr

* cr

* Add shorthand fromTemplate method to chatprompts

---------

Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-03-06 16:39:41 +00:00
Nicolas 2b205d3969 Nick: v40 (#172) 2023-02-28 19:52:48 -08:00
Nuno Campos 1f7045a71f Make openai classes use fetch, remove use of node-fetch (#118), Convert library to ESM codebase, ESM output (#124), Add GH (manual) action for running integration tests (#119)
* Use fetch adapter for openai axios

* Remove node-fetch, add instructions for node 16

* Add GH (manual) action for running integration tests (#119)

* Add integration tests GH action (manual trigger for now), reduce cost of integration tests by using smallest possible models

* Convert library to ESM codebase, ESM output (#124)

* Use fetch adapter for openai axios

* Update tsc build to output ESM only

* Update all import paths to have extension per ESM requirements

* Move all source files to src/

* Remove circular dependency

* Fix jest config for ESM

* Remove circular deps not possible with ESM

* Throw error in index getter to dedupe code and have safer usage (#35)

* Fix hnsw for esm

* Fix usage of hnswlib with index passed in

* Fix textsplitter for esm

* Fix openai for esm

* Fix hf for esm

* Fix ESM for cohere

* Fix ESM for serpapi

* Fix esm in srt

* Remove dependency on @vespaiach/axios-fetch-adapter which has an incorrect export

* Fix examples for esm

* Fix entrypoints

* Fix test-exports for esm

* Add fetch flag for node 16 ci job

* Add a more thorough test for packaging

* Fix docs build

---------

Co-authored-by: micahriggan <micahriggan@users.noreply.github.com>

---------

Co-authored-by: micahriggan <micahriggan@users.noreply.github.com>

* Fix one more import

* Fix example

* Also build docs in ci

* Fix sql test in ci

---------

Co-authored-by: micahriggan <micahriggan@users.noreply.github.com>
2023-02-27 13:57:22 +00:00
Nicolas 9777d574fe docs: Mendable Search v0.0.37 - Bug Fixes + Better Sources Tab + Feedback (#135)
* Update package.json

* Update yarn.lock
2023-02-26 08:32:46 -08:00
Harrison Chase 18a4b78975 Nick: new mendable version with mobile ui fixes, error handling (#127) (#129)
* Nick: new mendable version with mobile ui fixes, error handling (#127)

* cr

---------

Co-authored-by: Nicolas <nicolascamara29@gmail.com>
2023-02-24 07:24:29 -08:00
Harrison Chase 8b07541723 Harrison/mendable search (#109)
* docs: Integrating Mendable Search (#106)

* Nick: mai

* Nick: initial mendable search

* Update docusaurus.config.js

* Update docusaurus.config.js

* Update docusaurus.config.js

* cr

* cr

---------

Co-authored-by: Nicolas <nicolascamara29@gmail.com>
2023-02-22 23:14:40 -08:00
Nuno Campos 17165dc8de Update hnswlib, fix missing await/return, fix index resize, add test for addTexts/resize (#56) 2023-02-19 16:38:02 -08:00
Nuno Campos 8035633874 Add CI job (and make it green) (#42)
* Add CI job

* Add ci script

* Run format in examples package

* Format docs

* Fix eslint config in langchain

* Add ci command

* Separate unit and integration tests

* Fix ci command

* Make path relative, adjust node version

* Add os matrix

* Set eol to lf

* Do not cache CI command

* Try to fix loadFromHub on windows

* Update CONTRIBUTING for unit/int tests
2023-02-18 16:03:29 -08:00
Sean Sullivan d8de70e897 chore: publish v0.0.5 (#24) 2023-02-16 21:52:24 -08:00
Sean Sullivan f02042d899 fix: add initial documentation with typedoc (#16)
* fix: add initial documentation with typedoc

* feat: add docusaurus (#17)

* feat: add docusaurus

* fix: update docs

* Cleanup docs (#19)

* Create Guides category, sort out sidebars

* remove generated files

* Set up ghpages deployment

* Change deployment method

* Temporarily make it run on any push

* Fix api docs broken links, clean up the api docs output a bit

* Revert "Temporarily make it run on any push"

This reverts commit 423c15686c675e9410e311760f7c7934071eb84c.

---------

Co-authored-by: Nuno Campos <nuno@boringbits.io>

* Harrison/add getting started (#20)

* fix: add initial documentation with typedoc

* feat: add docusaurus

* fix: update docs

* Create Guides category, sort out sidebars

* remove generated files

* Set up ghpages deployment

* Change deployment method

* Temporarily make it run on any push

* feat: add docusaurus (#17)

* feat: add docusaurus

* fix: update docs

* Cleanup docs (#19)

* Create Guides category, sort out sidebars

* remove generated files

* Set up ghpages deployment

* Change deployment method

* Temporarily make it run on any push

* Fix api docs broken links, clean up the api docs output a bit

* Revert "Temporarily make it run on any push"

This reverts commit 423c15686c675e9410e311760f7c7934071eb84c.

---------

Co-authored-by: Nuno Campos <nuno@boringbits.io>

* cr

* cr

* cr

* cr

* cr

* fix: remove max-len lint rule

* cr

---------

Co-authored-by: Sean Sullivan <ssullivan61198@gmail.com>
Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Sean Sullivan <22581534+sullivan-sean@users.noreply.github.com>

* cr

---------

Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-02-16 17:47:56 -08:00