Commit Graph

101 Commits

Author SHA1 Message Date
Sergey Kozyrenko 8b3ec72f8a docs(bedrock): correct what the Converse API is required for
The page presented WithConverseAPI as a precondition for tool use,
structured output and reasoning, while its own default model is Claude
Haiku 4.5 — and the legacy InvokeModel path builds tools, output_config
schemas and thinking payloads for Claude. Only the non-Anthropic
providers, whose legacy builders never read options.Tools, actually
need Converse.

PAGI-125

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 13:27:51 +07:00
Sergey Kozyrenko 4be6bddbb9 docs: build the code-reviewer tutorial on Go 1.26
The tutorial's own prerequisites say Go 1.26.5+ and the library's go.mod
requires it, but the Dockerfile stage still pulled golang:1.24-alpine,
so the documented docker build failed at go build with a toolchain
that is older than the module requires.

PAGI-125

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 13:27:19 +07:00
Dmitry Ng da7016e399 docs: update Go version requirements across documentation
- Changed Go version requirement from 1.24+ to 1.26.5+ in multiple tutorial and contributing documents to ensure compatibility with the latest features and security updates.
- Updated search index keywords for improved searchability and relevance.
2026-08-04 14:39:37 +03:00
Dmitry Ng 14a80dca5b chore: update pnpm version and restructure package manager settings
- Set pnpm version to 10.34.5 in the GitHub Actions workflow for publishing documentation.
- Removed pnpm overrides from package.json and added package manager specification.
- Created a new pnpm-workspace.yaml file to manage package overrides for webpack-dev-server.
- Updated search-index.json to refine keyword entries for improved searchability.
2026-07-25 02:01:26 +03:00
Dmitry Ng 35da5c0f06 docs: update getting started guides and enhance documentation structure
- Added new guides for Anthropic and Google Gemini to the getting started section.
- Updated existing guides for Ollama, OpenAI, and Mistral to correct example links.
- Improved clarity in the architecture documentation regarding streaming responses and memory implementation.
- Enhanced structured output handling and reasoning options across various model integrations.
- Fixed minor formatting issues and updated references to ensure consistency throughout the documentation.
2026-07-23 12:10:23 +03:00
Dmitry Ng 1b1c761d98 chore: remove unmaintained legacy LLM providers
Breaking Changes:
- Remove Cloudflare Workers AI provider
- Remove Cohere provider
- Remove Ernie (Baidu) provider
- Remove Llamafile provider
- Remove Local provider
- Remove Maritaca provider
- Remove Watsonx (IBM) provider
- Remove compliance testing suite

This removes dead code that was no longer maintained, tested, or actively used. Users should migrate to actively supported providers like OpenAI, Anthropic, Google AI, Bedrock, or Ollama for local deployments.

Documentation:
- Remove provider integration pages
- Update parity matrix
- Update search index
- Remove provider examples
2026-03-11 18:55:16 +03:00
Dmitry Ng f2c57c4720 feat: breaking changes with llms.CallOptions and improve test coverage
- Removed deprecated RedactedThinkingContent from search index and adjusted related tests to enhance clarity.
- Updated CountTokens test to reflect correct expected token count.
- Refactored marshaling tests to streamline reasoning content handling, removing unnecessary redacted content checks.
- Modified CallOptions struct to use pointers for optional fields, improving memory efficiency and consistency.
- Enhanced test cases for CallOptions to validate new pointer-based logic and default values.
- Updated Anthropic client to utilize new CallOptions methods for better encapsulation and maintainability.
2026-03-10 23:41:18 +03:00
Dmitry Ng 9b82b86a11 chore: update React and related dependencies to latest versions
- Downgraded React and ReactDOM from version 19.1.0 to 18.3.1 for compatibility.
- Upgraded various Algolia packages, including `@algolia/abtesting`, `@algolia/client-abtesting`, and others, to version 5.49.0 to incorporate the latest features and fixes.
- Updated Docusaurus and related dependencies to version 3.9.2, ensuring alignment with the latest ecosystem changes.
- Adjusted lock files to reflect the updated dependency versions, enhancing overall project stability and performance.
2026-02-22 18:35:14 +03:00
Dmitry Ng 712d720afd llms: add reasoning support for message content serialization
- Introduced reasoning content handling in MessageContent and ToolCall structures, allowing for the preservation of reasoning details during JSON marshaling and unmarshaling.
- Enhanced tests to validate the serialization and deserialization of message content with reasoning, covering various scenarios including text and tool call types.
- Updated marshaling logic to conditionally include reasoning data based on its presence, ensuring accurate representation in JSON format.
- Added new reasoning-related tests to ensure comprehensive coverage of the new functionality.
2026-02-02 21:57:04 +03:00
Dmitry Ng 59b196e98a feat: enhance reasoning and caching support across various LLMs
- Updated reasoning handling in the Anthropic and OpenAI clients to support real-time streaming of reasoning tokens.
- Refactored reasoning structures to improve integration with existing models, ensuring consistent behavior across different LLM implementations.
- Added comprehensive tests for reasoning and caching functionalities, validating the expected behavior in various scenarios.
- Removed deprecated files related to previous caching implementations to streamline the codebase.

This update improves the overall performance and reliability of reasoning capabilities in LLM interactions.
2026-01-27 22:56:49 +03:00
Dmitry Ng fc989b35d1 httputil: Implement circular buffer for identical requests in httprr
- Added support for recording and replaying multiple identical requests, allowing each to return different responses in a defined order.
- Introduced `replayEntry` struct to manage response cycling for identical requests.
- Updated documentation to reflect new circular buffer behavior and usage examples for cache testing scenarios.
- Enhanced tests to validate the circular response behavior for both GET and POST requests.

This change improves the testing capabilities for scenarios where identical requests yield varying responses, such as caching mechanisms.
2026-01-26 13:42:49 +03:00
Dmitry Ng aa2dd71269 Merge branch 'main' into release/v0.1.14-update.1 2026-01-24 02:07:00 +03:00
Travis Cline 334f4c3689 vectorstores/milvus: complete migration to new SDK v2 client (#1403)
* vectorstores/milvus: complete migration to new SDK v2 client (#1397)

Complete the migration from the archived milvus-sdk-go/v2 to the new
github.com/milvus-io/milvus/client/v2 SDK as tracked in issue #1397.

**New Implementation**:
- Add complete vectorstores/milvus/v2/ package with new SDK client
- Implement all core vectorstore operations (Add, Search, Delete, etc.)
- Add comprehensive test suite with unit and integration tests
- Include migration example and documentation

**Key Changes**:
- New milvus.go with updated client initialization and operations
- Updated options.go with v2 SDK configuration patterns
- Added example_migration.go demonstrating upgrade path
- Comprehensive README.md with migration guide
- Updated go.mod/go.sum with new SDK dependencies

**Documentation**:
- Add docs/package-lock.json for documentation build dependencies
- Provide clear migration path from v1 to v2 implementation
- Maintain backward compatibility where possible

This completes the migration work started in earlier commits and provides
a full replacement for the deprecated SDK while maintaining the same
vectorstore interface.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* style: apply gofmt formatting to v2 package files

* fix: remove unused async field from v2 Store struct

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-15 14:45:48 -07:00
Travis Cline 601dc553d5 docs: fix API references and complete integration documentation (#1402)
* docs: fix outdated API references and examples across documentation

Update documentation to reflect current API patterns and fix outdated code examples:

- Update Error struct definition with Provider and Details fields in architecture docs
- Fix code examples to use CallOptions (WithTemperature, WithMaxTokens) instead of constructor options
- Update chain execution pattern from chain.Run() to chains.Run()
- Add context parameter to memory interface methods
- Update Vertex AI examples to use new googleai/vertex package structure
- Change from vertexai.New() to vertex.New() with updated option names
- Fix import paths for Google AI and Vertex AI integration
- Update minimum Go version requirement from 1.21 to 1.23

These changes ensure documentation examples work with the current codebase and provide accurate guidance for developers.

* docs: expand integration documentation and fix remaining API references

- Add comprehensive examples to chat and embeddings integration pages
- Fix missing context imports in LLM provider configuration
- Update Vertex AI examples to use correct vertex.New() syntax
- Fix broken link in CloudSQL vectorstore README
- Transform placeholder pages into useful developer resources

* docs: fix relative link in embeddings integrations page
2025-09-14 23:37:03 +02:00
Travis Cline dff679c481 docs: complete the incomplete basic chat app tutorial (#1399)
docs: complete basic chat application tutorial with progressive examples

Completely rewrite the basic chat application tutorial with a structured, step-by-step approach:

**Tutorial Documentation**:
- Restructure tutorial into 6 clear progressive steps
- Add proper setup instructions and prerequisites
- Include code examples for each step with explanations
- Improve clarity and flow from basic to advanced concepts

**Complete Working Example**:
- Add `examples/tutorial-basic-chat-app/` with full implementation
- Include separate files for each tutorial step (step3-step6)
- Add comprehensive README with usage instructions
- Support multiple execution modes via command-line arguments

**Progressive Implementation Steps**:
- Step 3: Basic single-shot LLM interaction
- Step 4: Interactive chat loop without memory
- Step 5: Chat with manual conversation memory management
- Step 6: Advanced chat using chains with automatic memory

**Features Added**:
- Go module setup with proper dependencies
- Error handling and graceful exit functionality
- Multiple chat implementations demonstrating different approaches
- Clear documentation linking tutorial to working code
- Support for running individual steps or complete implementation

The tutorial now provides a complete learning path from basic LLM usage to sophisticated conversation management using LangChainGo's chains and memory systems.
2025-09-14 20:20:59 +02:00
Zaber Al Rafian fd690c56ea Tools Doc : URL was not working. (#1309)
URL updated

the link to the documentation of Tools was updated
2025-08-19 20:37:25 +02:00
Travis Cline efaf02537b prompts: Prompt template improvements and docs expansion (#1348)
* prompts: add secure template rendering with filesystem support
* prompts: add comprehensive tests and examples

- Add security effectiveness tests for all attack vectors
- Add template rendering tests with all formats
- Add filesystem template tests with MapFS
- Add prompt template examples demonstrating all features
- Improve error handling and add local package references

* docs: add comprehensive prompt template documentation

- Add prompt template user guide with security section
- Add detailed API documentation for new functions
- Update partial values documentation
- Add template-related terms to style guide
- Document migration patterns and security considerations

* prompts: split template implementations by engine type

- Move Go template implementation to templates_go.go
- Move Jinja2 template implementation to templates_jinja2.go
- Clean up imports in templates.go
- Maintain all existing functionality with better code organization

* prompts: move security tests to dedicated file with expanded coverage

- Create new security_test.go file for all template security tests
- Expand test coverage for path traversal attacks in Jinja2 templates
- Add tests for migration patterns from vulnerable to secure implementations
- Remove redundant security tests from templates_test.go
- Improve organization of test code for better maintainability
2025-08-08 18:32:06 +02:00
Dmitry Ng f8a898d2b3 fix: update pnpm-lock.yaml with new package versions and dependencies 2025-07-11 20:43:36 +03:00
Dmitry Ng 02e034d152 Merge branch 'main-pull-requests' into main-vxcontrol 2025-07-11 20:16:52 +03:00
Dmitry Ng 98a49b683c Merge branch 'main' into main-pull-requests 2025-07-11 18:18:41 +03:00
Travis Cline 080815432a deps: update dependencies (#1319)
* deps: update base go and docs dependencies
* googleai: update test to match text-embedding-005 model name
2025-06-28 22:40:45 +02:00
Dmitry Ng 89c465c920 docs: update example commands for Mistral, Ollama, OpenAI, fill guide-chat document 2025-06-23 19:07:21 +03:00
Dmitry Ng eee90d9059 fix: multiple linter issues and logic in tests 2025-06-23 13:43:06 +03:00
Dmitry Ng 019056baba feat: setup repository for fork 2025-06-22 02:27:21 +03:00
Dmitry Ng b50ed12a88 Merge branch 'pr/1206' into main-pull-requests 2025-06-22 01:56:00 +03:00
BowieHe e2368a2894 docs:fix typo error, openAI and anthropic use withToken instead of wi… (#1314)
docs:fix typo error, openAI and anthropic use withToken instead of withAPIKey
2025-06-21 15:30:11 +02:00
Travis Cline 9715b95102 docs: follow-on and fix search indexing (#1313) 2025-06-18 12:10:26 +02:00
Travis Cline ebd931b432 docs: refactor documentation site content, structure (#1311)
* docs: restructure documentation with concepts, how-to guides and tutorials

- Add comprehensive architecture documentation
- Add how-to guides section with LLM provider configuration
- Add tutorials section with basic chat app example
- Update module documentation organization
- Switch from npm to pnpm for package management
- Update theme and search components

Co-authored-by: jacobcode91 <34037588+jacobcode91@users.noreply.github.com>
2025-06-16 18:14:26 +02:00
Andrew M McCall 508c445aa9 conceptual link going to 404 2025-04-04 20:38:32 -04:00
Travis Cline d750d4cf88 ci: enhance docs publishing workflow (#1139) 2025-02-09 04:04:51 -08:00
Alexandre E. Souza 862451acb8 llms: Add fake package (#935)
* feat: add fake package
2024-09-12 17:42:38 -07:00
Charuka Samarakoon 346f626b90 fix(docs): Type method missing from OutputParser (#972)
Added missing Type method, interface OutputParser in documentation is now identical to the /schema/output_parser.go
2024-09-12 17:15:05 -07:00
4lxprime a6fbddf7fb docs: fix text_splitters mdx code example never closed (#900) 2024-06-20 10:38:25 -04:00
Robby ee59e553c7 llms/watsonx: update module (#902)
Update Watsonx Package

Co-authored-by: Robby <h0rv@users.noreply.github.com>
2024-06-20 10:33:18 -04:00
Alexandre E. Souza a048b92dca docs/groq (#907)
feat: add documentation groq
2024-06-20 10:32:47 -04:00
Robby c0a4ea652d llms: add watsonx (#577)
* Add `go-watsonx` support
---------

Co-authored-by: Robby <h0rv@users.noreply.github.com>
Co-authored-by: Travis Cline <travis.cline@gmail.com>
2024-05-10 17:49:59 -04:00
Alexandre E. Souza d161fc2154 docs: re-add llamafile example (#693)
docs: Llamafile example
2024-05-07 00:48:07 -04:00
brian 3a36972919 docs: resolve rendering issue with code block in getting started docs (#754)
[fix] - resolve issue with code block rendering
2024-04-18 14:01:35 -07:00
loojee fcbc7178e3 fix: fix example path (#780) 2024-04-18 14:00:04 -07:00
Xiao d161462527 doc: fix typo (#758) 2024-04-07 12:17:26 -07:00
Aan Niraj Patel 8d90359935 llms: Add mistral hosted inference llm implementation (#717)
* llms: added mistral
2024-03-25 02:34:08 -07:00
Travis Cline e108163100 docs: Fix docs build (#686) 2024-03-19 01:09:52 +00:00
Alexandre E. Souza ebb5d1a2a2 Implementation proposal for using llamafile (#677)
* feat: add llamafile

* feat: add llamafile embeddings
2024-03-18 15:22:03 -07:00
Alexandre E. Souza b4e6529a3d docs: Add documentation for splitters (#649)
* Example spliters

example about use spliter

* fix: update names
2024-03-13 15:08:02 -07:00
Alexandre E. Souza 04e2df3ffc docs: Add example about retriever (#651)
* Example about retriever

A example about retriever, how use and why need use

* feat: add anothers options for vectorstore

* fix: update remove docs
2024-03-13 14:45:10 -07:00
Cody Oss 255f6a9885 docs: fixup a bunch of links (#659)
It seems like a bunch of links were broken and docs.langchain.com
now redirects to the python docs.
2024-03-13 14:42:01 -07:00
Alexandre E. Souza 08040750de Update huggingface.mdx 2024-03-02 00:33:36 -03:00
Travis Cline b0761da409 docs: Fix vertex example refs 2024-01-31 11:05:04 -08:00
Hao Chun Chang 427447104e docs: add agent executor example in getting-started 2024-01-23 18:23:51 +08:00
Travis Cline c842769da4 Merge branch 'main' into docs_agents 2024-01-22 17:08:33 -08:00