Skip to content

DSPY Integration#358

Open
Avngrstark62 wants to merge 110 commits intoGetBindu:mainfrom
Avngrstark62:main
Open

DSPY Integration#358
Avngrstark62 wants to merge 110 commits intoGetBindu:mainfrom
Avngrstark62:main

Conversation

@Avngrstark62
Copy link

DSPY Integration

This PR introduces DSPy-based prompt optimization into Bindu, enabling agents to improve their system prompts over time using real user feedback, in a safe and fully reversible way.

Key changes include:

  • Persistent storage of agent interactions, feedback, and prompt versions in Postgres.
  • Runtime prompt routing with canary-style traffic splitting between active and candidate prompts.
  • An offline DSPy training flow (SIMBA optimizer) that proposes new candidate prompts without affecting live traffic.
  • A separate canary controller that promotes or rolls back candidate prompts based on observed metrics.
  • Strict separation between training, routing, and promotion to ensure safety, measurability, and rollback guarantees.

Overall, this turns Bindu agents into self-improving systems while avoiding online learning, unsafe prompt swaps, or irreversible changes.


✅ Checklist clearly

  • I've added test cases for this feature
  • I've ran the tests and all unit test cases are passing(both the new ones and the already existing ones)
  • I've tested everything related to this feature
  • I've followed the project's style and linting rules.

📌 Related issue clearly

Closes #48

Avngrstark62 and others added 30 commits March 14, 2026 22:45
…stead of storing them in the db and continously updating them
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.

[Feature]: DSPY integration

3 participants