Skip to content

Bruno/merge to upstream#2

Merged
bbiangul merged 117 commits intomainfrom
bruno/merge-to-upstream
Apr 12, 2025
Merged

Bruno/merge to upstream#2
bbiangul merged 117 commits intomainfrom
bruno/merge-to-upstream

Conversation

@bbiangul
Copy link

PR Checklist

  • Read the Contributing documentation.
  • Read the Code of conduct documentation.
  • Name your Pull Request title clearly, concisely, and prefixed with the name of the primarily affected package you changed according to Good commit messages (such as memory: add interfaces for X, Y or util: add whizzbang helpers).
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. Fixes #123).
  • Describes the source of new concepts.
  • References existing implementations as appropriate.
  • Contains test coverage for new functions.
  • Passes all golangci-lint checks.

tmc and others added 30 commits September 12, 2024 22:33
openai: Rename MaxTokens to MaxCompletionTokens
optimize the mrkl prompt

Co-authored-by: chensilun <chensilun@baidu.com>
Added missing Type method, interface OutputParser in documentation is now identical to the /schema/output_parser.go
The BooleanOutputParser requests the LLM to respond with a boolean,
and gives examples such as `true` or `false`. However, it only parsed
respones that include YES or NO. This commits adds more values for
parsing and changes the tests to fit them.
The DefinedOutputParser prompted the LLM with a Typescript schema,
but expected a json in response: https://github.com/tmc/langchaingo/blob/1975058648b5914fdd9dc53434c5b59f219e2b5c/outputparser/defined.go\#L65-69
Now it also requests a json.
Originally the MarkdownTextSplitter would split tables into chunks
for each row (producing a header + single row) in each chunk. This
change adds an option to join multiple rows into a single chunk.

Fixes: tmc#938
* googleai: add support for JSONMode and ResponseMIMEType

* llms: update comments to match linting rules
…mpletions api (tmc#986)

openai: add support for structured output request
Vector range queries expect a radius rather than a score threshold.
milvus: add disableFlush option
outputparser: replace strings.Split with strings.Cut in structured parser
fix(bedrock): Handle unchecked error when stream channel is closed
* feat: add fake package
…example (tmc#969)

replaced compose v1 with compose v2 in readme
* mongovector: Add mongo vectorstore implementation

---------

Co-authored-by: Travis Cline <travis.cline@gmail.com>
* examples: Point examples to v0.1.13-pre.0

* examples: fix typo in o1
FluffyKebab and others added 29 commits January 28, 2025 22:49
add image and text content example to openai
test: containerize mongovector tests
[dependency] Upgrade to mongo-go-driver v2.0.0
docs: Update Discord invite link in README
docs: Add mongovector README.md and example
Add ReasoningContent field for deepseek-reasoner model
fix docs publishing, use v3 of upload artifact
…uman messages. (tmc#1141)

* anthropic: Add support for multi content part  in human messages.

* examples: Add Anthropic Vision example

* fix: move base64 encoding in the lib
* feat: implement StreamingReasoningFunc for resoning models

* Using deepseek example for streaming reasoning content
# Conflicts:
#	chains/sequential.go
#	embeddings/embedding.go
#	examples/vertex-completion-example/go.sum
#	llms/googleai/googleai.go
#	llms/googleai/vertex/vertex.go
#	textsplitter/markdown_splitter_test.go
* 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
# Conflicts:
#	chains/map_reduce.go
#	chains/map_rerank_documents.go
#	documentloaders/csv.go
#	examples/zep-memory-chain-example/main.go
#	outputparser/boolean_parser.go
#	vectorstores/chroma/chroma.go
@bbiangul bbiangul merged commit 2719620 into main Apr 12, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.