81 Commits

Author SHA1 Message Date
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
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
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
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
Hao Chun Chang f37edf123a docs: add mrkl agent executor example 2024-01-21 15:53:57 +08:00
Hao Chun Chang a65a7c9547 docs: update agent concept url to python.langchain 2024-01-21 15:50:35 +08:00
Ruslan Karimov c152d9764c docs: add pgvector page 2024-01-20 11:18:20 +02:00
Hao Chun Chang 219ac6ea25 docs: add example to embeddings 2024-01-16 20:54:37 +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
Travis Cline c97f566a86 docs: Fix docs building 2023-12-12 20:31:54 -08:00
dependabot[bot] a1d183f61b build(deps): bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#366)
build(deps): bump axios, @docusaurus/core and @docusaurus/preset-classic

Bumps [axios](https://github.com/axios/axios) to 1.6.2 and updates ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Updates `axios` from 0.25.0 to 1.6.2
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.25.0...v1.6.2)

Updates `@docusaurus/core` from 2.4.0 to 3.0.0
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.0/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.0 to 3.0.0
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.0/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Travis Cline <travis.cline@gmail.com>
2023-12-04 22:38:29 -08:00
Travis Cline f5460c433b Update docusaurus.config.js 2023-12-04 22:38:28 -08:00
Travis Cline 58d91f5b0e docs: Minor tweak 2023-12-04 22:38:28 -08:00
Travis Cline 89c395b5d9 docs: Simplify quickstart material 2023-12-04 22:38:28 -08:00
Travis Cline b550f9d663 docs: Minor edits to ollama guide 2023-12-04 22:38:28 -08:00
Travis Cline be4db38357 docs: Add docs publishing, include Ollama quickstart guide. (#342)
* docs: Mark unfinished parts as draft

* github: Add docs publish workflow

* github: Simplify pages deploy

* docs: set baseUrl

* docs: mark more as draft for now
2023-12-04 22:38:28 -08:00
dependabot[bot] f2757a0f0b build(deps): bump @babel/traverse from 7.22.5 to 7.23.2 in /docs (#326)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 22:38:28 -08:00
Amir Karimi 225316c84e chains: added constitutional chain. refactored few shot prompt (#316) 2023-12-04 22:38:28 -08:00
dependabot[bot] f98c64effe build(deps): bump postcss from 8.4.24 to 8.4.31 in /docs (#309)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.24 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.24...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 22:38:28 -08: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
Tobi b2aa463a6c chains: add memory support for sequential chain 2023-07-24 23:30:28 +01:00
Travis Cline eb8675b734 Merge pull request #212 from tmc/dependabot/npm_and_yarn/docs/word-wrap-1.2.5
build(deps): bump word-wrap from 1.2.3 to 1.2.5 in /docs
2023-07-23 11:43:56 -07:00
Travis Cline d8070065be Merge pull request #211 from tmc/dependabot/npm_and_yarn/docs/semver-5.7.2
build(deps): bump semver from 5.7.1 to 5.7.2 in /docs
2023-07-23 11:43:51 -07:00
Travis Cline 564eb8b652 Merge pull request #195 from baoist/outputparser/feat/boolean-parser
outputparser: Add BooleanParser
2023-07-23 11:32:35 -07:00