chyroc
99bb50d3c7
Feat: use chains callback as streaming func ( #447 )
2023-12-24 21:05:42 -08:00
Travis Cline
213b9dca74
examples: Update langchaingo to v0.1.1 ( #445 )
2023-12-20 21:40:03 +00:00
Travis Cline
4b61176cd0
examples: Fix typo
2023-12-12 20:49:43 -08:00
Travis Cline
1c8e491300
examples: Use v0.1.0
2023-12-12 20:42:59 -08:00
Travis Cline
b0c827511c
examples: Update langchaingo version in examples
2023-12-12 20:12:21 -08:00
Travis Cline
aee820e3bb
ollama: Add use of new chat endpoint ( #406 )
...
* ollama: Add use of new chat endpoint
2023-12-13 04:08:14 +00:00
Jeremy
00f364f27f
embeddings: remove TEI embeddings client. ( #396 )
...
* remove tei embeddings
2023-12-09 13:48:32 -08:00
Eli Bendersky
4bb28402cf
embeddings: use NewEmbedder for Ernie embeddings ( #392 )
...
For #379
Updates examples go.mod because it's used in an example
2023-12-04 22:38:29 -08:00
Eli Bendersky
7dd3fd2a1c
embeddings: new NewEmbedder for Ollama embeddings
...
The only use of Ollama embeddings is an example - update it too and
go.mod versions
2023-12-04 22:38:29 -08:00
Eli Bendersky
d5d8a3e13d
examples/pinecone-vectorstore-example: use new embedder ( #386 )
...
Now that the main module's version was bumped, update the example
to use a proper embedder
2023-12-04 22:38:29 -08:00
Eli Bendersky
fc033c3471
embeddings: use NewEmbedder for OpenAI embeddings ( #385 )
...
This is the first use of the refactoring made in #374 -- removing the
embeddings/openai directory entirely, since it can be now implemented
with NewEmbedder without duplicating code. The test was moved one
dir down and works with the new setup.
This is a model that can be used to similarly refactor the other
embeddings/* subdirs.
This is a large PR because it also updates example go.mods
For #379
2023-12-04 22:38:29 -08:00
Jeremy
c1d8f5f1ae
Simplify milvus example ( #383 )
...
adding huggingface text embeddings interface as docker service for convienience
2023-12-04 22:38:29 -08:00
Travis Cline
cda53c9ed7
examples: fix milvus example to not ask to run ollama ( #381 )
2023-12-04 22:38:29 -08:00
Travis Cline
fa74369a81
examples: update examples ( #380 )
2023-12-04 22:38:29 -08:00
Jeremy
721e152d74
vectorstores: add Milvus ( #352 )
...
* adding milvus vector store
* adding hugging face text embedings
* adding milvus vector store example
2023-12-04 22:38:29 -08:00
sxk
1156076de1
LLM: Add support for Ernie chat_completions ( #355 )
...
* LLM: Add support for Ernie chat_completions
The current implementation lacks support for Ernie chat_completions, so I've added code for this. The committed changes include basic stream calls, function calls, and other capabilities.
2023-12-04 22:38:29 -08:00
Eli Bendersky
0e8d6dcea3
examples: move go.work creation to root ( #378 )
...
We only need a single go.work file in the reposotory, and `go work use -r .`
can recursively add all sub-modules to it, without requiring bash iteration.
Moves the creation of go.work into the root Makefile
go.work is still in .gitignore so it won't be committed
Fixes #375
2023-12-04 22:38:29 -08:00
Eli Bendersky
cb4445f7fb
examples/ernie-completion-examples: make this example a separate module part 2 ( #367 )
...
This sets the go.mod to point to a newer version of the parent module,
so now there's no conflict and everything builds and lints.
This is part 2, followup on #365
2023-12-04 22:38:29 -08:00
Eli Bendersky
0ceee6e7cd
examples/ernie-completion-examples: make this example a separate module ( #365 )
...
* examples/ernie-completion-examples: make this example a separate module
Right now it's in the main module, the only example of this kind.
Align it with the other examples.
This is a two step change, and this is step 1; step 2 will be updating
this example's go.mod to rely on a newer version of langchaingo that
no longer provides this package.
* Comment code out for lint to pass
2023-12-04 22:38:29 -08:00
Travis Cline
ba41483f6c
examples: Add gpt4 turbo example ( #349 )
2023-12-04 22:38:29 -08:00
Travis Cline
89c395b5d9
docs: Simplify quickstart material
2023-12-04 22:38:28 -08:00
Travis Cline
6d5ec4afec
examples: Include full path in examples
2023-12-04 22:38:28 -08:00
Travis Cline
d933d99f91
example: Sync
2023-12-04 22:38:28 -08:00
Travis Cline
2cafc2708d
example: Sync
2023-12-04 22:38:28 -08:00
Cyril Peponnet
3fd51d9358
Adding ollama support ( #327 )
...
* Adding ollama support
* Address linting issues
* Disable default templating of model if any to avoid messing up custom prompts
* Added Ollama chatModel
* Adding ollama embeddings
* Added examples and fix the chat template for llama2
* examples: Fixup module names in ollama examples
* ollama: Small lint fix
---------
Co-authored-by: Travis Cline <travis.cline@gmail.com >
2023-12-04 22:38:28 -08:00
Travis Cline
8d9bb2c9e6
examples: Sync and update deps
2023-12-04 22:38:28 -08:00
Travis Cline
bfa040eb1a
examples: sync to main
2023-12-04 22:38:28 -08:00
bjwswang
7c8a1bed5f
vectorstore: openai apikey is must required only when embedder is nil ( #318 )
...
Signed-off-by: bjwswang <bjwswang@gmail.com >
2023-12-04 22:38:28 -08:00
Marty Ross
c5fe58eadb
vectorstores: Add remote chroma "vectorstore" adapter ( #282 )
...
* FR278 Add remote chromadb support
* FR278 Fix lint complaints
* Add 'nameSpace' via metadata
* Add embedder Option
* Add includes, example app, README
* feat(vectorstore): add chroma
* fix: update type to match upstream
* style: fix golangci-lint complaints
2023-12-04 22:38:27 -08:00
Travis Cline
dd671f1d64
examples: Sync langchaingo version
2023-09-24 15:35:38 -07:00
Travis Cline
4dac573d3b
examples: Sync langchaingo version
2023-09-24 15:34:41 -07:00
Travis Cline
1c87838fe7
embeddings: use float32 throughout ( #297 )
...
* embeddings: use float32 throughout
* floats: more conversions
* exapmles: Add vertexai embeddings example
2023-09-24 22:32:18 +00:00
Travis Cline
c85d3967da
examples: add streaming fn example, sync ( #272 )
...
* examples: add openai streaming function call example
* examples: Sync to latest
2023-08-29 03:27:28 +00:00
David
4abef1ec25
ernie embedder throw ErrEmbedderWrongNumberVectors #268 ( #269 )
2023-08-28 19:00:29 -07:00
Travis Cline
61dcdca16c
Merge branch 'main' into callbacks
2023-08-25 19:19:30 -07:00
Travis Cline
c5b84faa54
callbacks: Include context
2023-08-25 19:14:02 -07:00
David
6d8f0e790e
feat: add Baidu LLM ERNIE
2023-08-23 19:47:13 +00:00
Travis Cline
acdd75c474
examples: Add anthropic example, sync examples
2023-07-29 16:24:26 -07:00
Travis Cline
442bc94f51
llms: Add anthropic llm implementation
2023-07-29 16:16:11 -07:00
Travis Cline
3234c9d952
examples: Sync
2023-07-25 18:44:25 -07:00
Travis Cline
19bf79c5dc
Merge branch 'main' into seqchain-example
2023-07-24 10:52:51 -07:00
Travis Cline
eb43ec34db
examples: Sync to latest
2023-07-24 10:52:07 -07:00
Tobi
def10baa35
examples: add go.mod, go.sum
2023-07-23 23:42:34 +01:00
Tobi
4373ca2336
examples: add simpleseq and seq chain examples
2023-07-23 23:39:02 +01:00
Travis Cline
501ecee66e
examples: Update to function-calling refactor
2023-07-23 15:31:45 -07:00
Travis Cline
c9325c5ba3
examples: Add specific ref syncing ability
2023-07-23 15:30:54 -07:00
Travis Cline
cdc57b5af6
langchaingo: Refactor and support function calling
2023-07-23 15:27:29 -07:00
Travis Cline
d5b1c0abd7
examples: Add function calling example
2023-07-23 14:16:55 -07:00
Travis Cline
890d4ce19b
examples: Sync to latest
2023-07-23 11:42:45 -07:00
Travis Cline
cb9f67698b
Merge pull request #207 from lowczarc/main
...
llms: add cohere support
2023-07-23 11:37:09 -07:00