53 Commits

Author SHA1 Message Date
Travis Cline 6c217b3865 test: improve test coverage and optimize storage with gzip compression (#1378)
* embeddings/vertexai,memory: remove deprecated PaLM test and add recordings

Remove deprecated VertexAI PaLM embeddings test (PaLM API deprecated August 2024).
Add missing test recordings for memory/token buffer tests.

* vectorstores/redisvector: regenerate test recordings and compress

Regenerate test recordings for Docker container compatibility.
Compress large recordings (>50KB) with gzip for space efficiency.

* vectorstores/chroma: regenerate test recordings and compress

Regenerate test recordings for Docker container compatibility.
Compress large recordings (>50KB) with gzip for space efficiency.

* vectorstores/milvus: add deprecation notice and compress recordings

Add deprecation notice for Milvus vectorstore.
Compress test recordings with gzip for space efficiency.

* vectorstores/opensearch: regenerate test recordings and compress

Regenerate test recordings for Docker container compatibility.
Fix test to properly set up service_role for local tests.
Compress large recordings with gzip for space efficiency.

* vectorstores/weaviate: regenerate test recordings and compress

Regenerate test recordings for Docker container compatibility.
Compress large recordings (>50KB) with gzip for space efficiency.

* vectorstores/{pgvector,alloydb,cloudsql}: regenerate and compress recordings

Regenerate test recordings for Docker container compatibility.
Compress large recordings (>50KB) with gzip for space efficiency.
Covers pgvector, AlloyDB, and CloudSQL PostgreSQL vectorstores.

* tools/wikipedia: regenerate test recordings

Update test recordings with current Wikipedia API responses.
2025-08-23 19:06:20 +02:00
Travis Cline 77504b877f all: expand test coverage (#1312)
* scripts: cleanup test scripts
* lint: add test pattern and architectural linting
* internal/httprr: expand httprr testing
* test: add comprehensive unit test coverage
* docs: add comprehensive testing guide to CONTRIBUTING.md
* examples: standardize module versions and cleanup dependencies
* all: re-record several httprr recordings
2025-06-16 18:14:02 +02:00
Travis Cline c544fb77bd all: add broad httprr coverage, update dependencies, organize go.mod file, bump to 1.23 (#1299)
* all: add broad httprr coverage, update dependencies, organize go.mod file, bump to 1.23

update go version to 1.23
add lots of test coverage via httprr recordings
update dependencies and organize go.mod
add testutil/testctr which helps work around a testcontainers-go+colima bug
expand the huggingface implementation and tests
expand capabilities of the ollama package
2025-06-04 11:41:45 -07:00
Averi Kitsch 77b2d7bf3a memory: add interfaces for Google AlloyDB and Cloud SQL (#1205)
* memory: add interfaces for Google AlloyDB and Cloud SQL
2025-04-17 14:01:24 -07:00
Manuel de la Peña 8d4c17fc73 ci: migrate linting golangci-lint to v2.0.2 (#1217)
* chore: use slices and maps packages

* chore: skip embedded type

* chore: use fmt.Fprint instead

* chore: use switch

* chore: reorder imports

* chore: add white lines

* chore: use t.Setenv

* chore: excplicitly omit non used param

* chore: use t.TempDir

* chore: use maps package

* chore: migrate golangci-lint config file

Run: "golangci-lint migrate -c .golangci.yaml --skip-validation"

* chore: bump golangci-lint action to v7
2025-04-12 01:54:50 -07:00
Travis Cline bf1667feaf lint: fixup lint settings (#1018) 2024-09-13 04:39:28 +00:00
Travis Cline 4ff4b21c80 deps: clean up direct dep on zerolog (#886) 2024-06-15 03:58:01 +00:00
Pavlo Paliychuk 89195f8554 memory: Add Zep Cloud integration (#746)
* memory: Add Zep Cloud integration
2024-06-14 23:19:11 -04:00
wei f4f7a807b5 memory: move mongo chat history into the separate module (#843) 2024-06-14 22:47:12 -04:00
Murilo Santana 3450a049a5 Chat Memory History: add sqlite3 backend (#798)
chat memory history: add sqlite3 backend
2024-05-07 00:26:37 -04:00
wei fe22d8ecd3 memory: Add mongodb memory implementation (#810)
* feat(internal): add mongodb client

* feat(memory): add mongodb memory
2024-05-04 19:39:05 -04:00
Eli Bendersky 556a263188 schema: move Chat* types to llms (#757)
* schema: move Chat* types to llms

This prevents a circular dependency or code duplication when using Tools
2024-04-16 23:35:51 -07:00
Travis Cline b6ba6693d3 tooling: Update minimum go version to 1.22, update golangci-lint (#722)
* go: Update to go 1.22, update golangci-lint config

* lint: Address various lint issues

* chains: fix lint complaint in TestApplyWithCanceledContext

* lint: Address addtional lint issues

* lint: Address addtional lint issues

* tools: update golangci-lint to 1.57
2024-03-26 20:31:20 +00:00
Abirdcfly 008cf7d469 memory: fix cutMessages in ConversationWindowBuffer
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2024-01-19 11:52:21 +08:00
Eli Bendersky cbab2c9b77 Deprecate the LLM interface
It's just an alias for Model now
2024-01-17 14:09:45 -08:00
Eli Bendersky b5c16493c2 Clear out GetNumTokens (#483)
It's not used and not implemented correctly for almost any model.

If this is deemed useful, it will be more correct to expose a model name
from the LLM (or cliena?) and then invoke a standalone function familiar
with non-openai models.

Re #482
2024-01-03 12:35:26 -08:00
Eli Bendersky ab14227446 Remove mentions of the LanguageModel interface 2023-12-29 09:44:57 -08:00
Abirdcfly affaa87bdd memory: add ConversationWindowBuffer (#411)
Port the ConversationBufferWindowMemory class from langchain python in langchaingo

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2023-12-28 15:24:35 -08:00
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
Ismail 80f9027554 fix: golangci-lint v1.55 errors 2023-12-04 22:38:28 -08:00
zivkovicn a2d46375a2 chat-history-clear-method | lint 2023-08-18 15:57:37 +02:00
zivkovicn c1cd7f2426 chat-history-clear-method | adding context to match all other methods 2023-08-18 15:57:04 +02:00
edocevol cb3a6d5ac9 add context support for memory 2023-08-14 12:55:00 +08: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 223321b9e9 feature-conversational-retrieval-interface-fix | refactor 2023-07-25 16:56:48 +02:00
zivkovicn b0fd480206 feature-conversational-retrieval-interface-fix | refactor 2023-07-25 16:35:59 +02:00
zivkovicn e8eb07492c feature-adding-max-token-size-memory | cp 2023-07-24 20:02:02 +02:00
zivkovicn 5f6a88149e feature-adding-max-token-size-memory | lint 2023-07-24 19:57:52 +02:00
zivkovicn a39c1511df Merge branch 'main' into feature-adding-max-token-size-memory 2023-07-24 19:57:24 +02:00
zivkovicn f3c02d8226 feature-adding-max-token-size-memory | cp 2023-07-24 18:59:59 +02:00
zivkovicn c9480116aa feature-adding-max-token-size-memory | logic update 2023-07-24 18:49:38 +02:00
zivkovicn bf100cedd5 feature-adding-max-token-size-memory | lint 2023-07-24 17:52:47 +02:00
zivkovicn 0b144d4f90 Merge branch 'main' into feature-adding-max-token-size-memory 2023-07-24 17:26:20 +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 311c3ee65e memory: Re-export ChatHistory 2023-07-23 14:16:47 -07:00
zivkovicn f6048c373a feat-adding-memory-buffer-options | lint 2023-07-21 18:04:47 +02:00
zivkovicn 9d48143d52 feat-adding-memory-buffer-options | private prop 2023-07-21 18:04:26 +02:00
zivkovicn 6710273eac feat-adding-memory-buffer-options | updating memory buffer options 2023-07-21 17:58:17 +02:00
Taiwo Hassan Yusuf 4d7a8e246e Added package level comments to codebase 2023-06-19 09:35:48 +01:00
FluffyKebab 454460a438 memory: rename files 2023-04-28 10:09:51 +02:00
FluffyKebab 21d00ddf5c exp: remove output_parsers and text_splitters 2023-04-28 09:37:54 +02:00
FluffyKebab f6a8bad299 memory: remove exp version 2023-04-26 22:23:23 +02:00
FluffyKebab 1c1c35c25d memory: rename empty and add comments 2023-04-25 22:18:33 +02:00
FluffyKebab 56da596a38 memory: fix memory variables in buffer 2023-04-25 13:05:58 +02:00
FluffyKebab f196e50502 memory: add clear in chat message history 2023-04-25 12:58:56 +02:00
FluffyKebab be9532d0e2 memory: add static error 2023-04-25 12:45:12 +02:00
FluffyKebab 2295b738c9 memory: split lines add static error 2023-04-25 12:33:13 +02:00
FluffyKebab 64045d5d7a memory: add version out of exp 2023-04-25 11:39:41 +02:00