Skip to content

Conversation

@wyangsun
Copy link

@wyangsun wyangsun commented Nov 14, 2025

To support Thinking output.

wyangsun and others added 6 commits November 6, 2025 13:32
* feat: saturn query pipeline for rag optimisation

* feat: remove hardcoded limit

* feat: remove unused metadata

* feat: todo comments

* feat: todo comments

* feat: decouple query rewriting and rag search

* chore: remove unused comments

* fix: fix missing s3 config, make embedding model configurable

* feat: debug voyage api key

* feat: substitute rag embedding provider env var, remove debug log

* feat: add IRSA support to service account template

* feat: add logs

* feat: add observability for query enhancement

* fix: fix empty input and tool name for tool-execution span

* feat: added embedding span and fixed incorrect token usage

* feat: vector search span

* feat: make date filter field configurable

* feat: let llm handles the date window

* feat: inject query enhancement prompt

* feat: handle corrupted metadata

* fix: fix race condition in S3Provider.Initialize()

* perf(rag): optimize result sorting from O(n²) to O(n log n)

* fix: sort dates in descending order, better for LLM

* fix: fix test

* fix: fix golangci lint err

* fix: remove redundant metadata filtering

* refactor: dates filter are stored as int

* refactor: dates filter are stored as int

* fix: fix lint
@wyangsun wyangsun changed the title PE-7777: Claude Sonnet 4.5 integration PE-7789: Thinking output Nov 25, 2025
@yekkhan-liftoff yekkhan-liftoff self-requested a review November 25, 2025 06:08
}
// Extract thinking token usage
usage := llms.ExtractThinkingTokens(choice.GenerationInfo)
if usage != nil && usage.ThinkingTokens > 0 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to check is it possible to include this token usage in langfuse trace

@wyangsun wyangsun merged commit 4c8db7d into main Nov 25, 2025
7 of 8 checks passed
@wyangsun wyangsun deleted the PE-7777-integrate-claude-sonnet-4.5 branch November 25, 2025 07:02
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.

4 participants