30 Commits

Author SHA1 Message Date
chyroc 55f772c21a Docs: fix comment typo (#442)
* Docs: fix comment typo

* docs: a llm -> an LLM

---------

Co-authored-by: Travis Cline <travis.cline@gmail.com>
2023-12-20 19:57:37 +00:00
Eli Bendersky 895418c8c0 Clean up comments in chat_message_history 2023-12-16 06:33:38 -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
Colin Duggan 6cfe92cfda schema: add score attribute to document type to allow similarity score to be returned from vector search (#298)
Include score field in document type to provide more context about the accuracy of results returned by similaritysearch
2023-09-27 12:04:53 -07:00
Travis Cline e89bc0bd36 Function call streaming (#271)
* openai: Use chat completions for normal completions (as recommended)

* openai: Fix streaming partial argument results

* docs: some docs updates

* openaiclient: Fix lint issues
2023-08-29 03:20:09 +00:00
zivkovicn c1cd7f2426 chat-history-clear-method | adding context to match all other methods 2023-08-18 15:57:04 +02:00
edocevol 36bfa3c156 memory: add context support 2023-08-14 12:45:54 +08:00
zivkovicn 0fe23628a1 feature-conversational-retrieval-interface-fix | updating chat schema 2023-07-25 18:52:57 +02:00
zivkovicn b0fd480206 feature-conversational-retrieval-interface-fix | refactor 2023-07-25 16:35:59 +02:00
zivkovicn a39c1511df Merge branch 'main' into feature-adding-max-token-size-memory 2023-07-24 19:57:24 +02:00
zivkovicn bc1ac3e00a feature-adding-max-token-size-memory | cp 2023-07-24 17:25:57 +02:00
Travis Cline cdc57b5af6 langchaingo: Refactor and support function calling 2023-07-23 15:27:29 -07:00
Travis Cline d3e9bcb5f3 llms: Add function calling support. 2023-07-23 14:16:55 -07:00
zivkovicn 6710273eac feat-adding-memory-buffer-options | updating memory buffer options 2023-07-21 17:58:17 +02:00
FluffyKebab 2f879f8a87 llms: split chat and llm and implement language model 2023-06-14 23:54:54 +02:00
FluffyKebab 2167a011bd agent: refactor to better match upstream and add calculator 2023-05-19 15:34:23 +02:00
FluffyKebab d0ea8553fc vectorstores: add pinecone support 2023-05-01 16:17:22 +02:00
FluffyKebab f6a8f27236 Add list parser and start of structred 2023-04-25 11:07:24 +02:00
Travis Cline 2e483c8564 prompts: Simplify prompts package 2023-04-24 14:28:03 -07:00
Ayaka Neko 5e9b30fc11 prompts: introduce prompts concept and added relevant types
prompts: continue implementing
prompts: introduced PromptTemplate along with the relevant types
test: use testify for tests, fix lint issues
prompts: improve tests
prompts: improve tests
2023-04-24 14:27:29 +08:00
FluffyKebab 05452c717c comment fixes 2023-04-23 20:11:58 +02:00
Travis Cline c02f37a2f4 lint: Add stricter linting 2023-04-21 18:19:54 -07:00
FluffyKebab 7903984cc0 exp: change names of files and start using schema
- Change file names in exp to follow go standard
 - Make exp dependent on the actual schema package
 - Add some comments in exp
 - Change from using reflect.DeepEqual to cmp.Equal in tests in exp
 - Change inputValues and chainValues to map[string]any in exp
2023-04-21 12:46:49 +02:00
Travis Cline 0e6ffe074c schema: add more upstream schema concepts 2023-04-19 19:13:10 -07:00
Travis Cline f0dfc4f99c schema: Add tests, tweak interface a bit 2023-04-18 21:08:45 -07:00
Travis Cline c8323a2661 schema: Add schema package 2023-04-18 21:01:54 -07:00
Travis Cline 0c64c65896 exp: Move recent contributions into exp subdir for now 2023-04-17 21:13:29 -07:00
FluffyKebab 3633823da9 Add retrivalQAChain and stuff documents chain
- Add QA example
  - Removed code adding line metadata to documents because it did not work
  - Add tests for both new chains
2023-04-16 17:46:37 +02:00
FluffyKebab 0108a323a0 Add interface for text splitters and document loaders, and add text loader 2023-04-06 19:52:42 +02:00
FluffyKebab 149fc5e869 Add chat template, template interface and test
Introduce ‘Prompts.ChatTemplate’ as a version of ‘ChatPromptTemplate’
Add struct ‘prompts.Message’ comparable to ‘BaseMessageStringPromptTemplate’ and all subclasses in the typeScript version
Add interface for prompt templates with the name ‘prompts.Template’
move chat message structs and interface to schema to remove dependence on the memory package
Add empty memory as default value for memory in the LLMChain
Add test for ‘prompts.ChatTemplate’
2023-04-06 12:39:53 +02:00