Skip to content

Feat/rag#17

Merged
vinodvx merged 2 commits into
mainfrom
feat/rag
May 24, 2026
Merged

Feat/rag#17
vinodvx merged 2 commits into
mainfrom
feat/rag

Conversation

@vinodvx

@vinodvx vinodvx commented May 24, 2026

Copy link
Copy Markdown
Contributor

Description

Adds first-class RAG support to agent-sdk-go via a pluggable interfaces.Retriever API, with agentic, prefetch, and hybrid retrieval modes integrated into the Temporal agent workflow. Also bumps the Go toolchain to 1.26.

What's included

  • Retriever modesagentic (LLM calls retriever as a tool), prefetch (retrieve before each LLM call), and hybrid (both)
  • Workflow integrationAgentRetrieverActivity for prefetch/hybrid; retrieved context injected into LLM prompts; retriever exposed as a tool in agentic/hybrid
  • Built-in backendspkg/retriever/weaviate and pkg/retriever/pgvector (cosine search, configurable top-k/min-score)
  • Agent configWithRetrievers, WithRetrieverMode; retriever config included in agent fingerprint for worker alignment
  • Examplesexamples/agent_with_retriever/ with shared config, sample KB, Docker setup/cleanup scripts (pgvector includes verify.sh)
  • Docs — README RAG section, capabilities/TOC updates, env.sample vars
  • Go 1.26go.mod updated to go 1.26 / toolchain go1.26.0; Makefile and CI/lint tooling adjusted as needed

Test plan

  • Run Weaviate example in agentic, prefetch, and hybrid modes
  • Run pgvector example in all three modes; confirm verify.sh returns expected scores
  • Confirm agent and worker use the same retriever config (no fingerprint mismatch)
  • Verify build/test with Go 1.26
  • Run make test for retriever and workflow packages

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactor / chore

Related issues

Fixes #16

Checklist

  • I have run make lint and make test locally
  • I have run make tidy if I added or removed dependencies
  • Commit messages follow conventional commits (e.g. feat:, fix:, docs:)
  • I have added/updated tests for my changes
  • Documentation is updated if needed

@vinodvx vinodvx merged commit 2837bb9 into main May 24, 2026
3 checks passed
@vinodvx vinodvx deleted the feat/rag branch May 24, 2026 19:09
vinodvx added a commit that referenced this pull request May 27, 2026
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.

feat: add RAG support via pluggable Retriever that integrates as a Tool

1 participant