ruvnet / dspy.ts
DS.js (Declarative Self‑learning JavaScript
Why this job: works in the areas we cover, but does not say which job it does
What it does
- Vector store. store / storeText / search / searchText / update / delete / batchStore / getStats, with k / minScore / filter / includeVectors, a search cache, and stats. backendKind reports 'agentdb-rvf' or 'memory'; storage.backend ('auto'
- Filtered search. search(v, { filter: { kind: 'doc', score: { $gt: 0.5 } } }) (operators $eq $ne $lt $le $gt $ge $in $range) or an agentdb expression { op: 'eq', field: 'kind', value: 'doc' } with and / or / not. Only matching items are ret
- RaBitQ quantization. performance.quantization: 'rabitq' stores a 1-bit-per-dimension sign code (codes alone are ~32× smaller than float32; original vectors are retained); search becomes a Hamming coarse-filter → cosine re-rank of the top r
- Hierarchical tiers. store(v, m, { tier }) (working | short | long, default long), searchTiered({ tiers }), promote(id, tier), evictTier(tier, { maxAgeMs, max }), tierCounts().
- ReasoningBank + SAFLA. knowledge units learned from experiences, embedded via the AgentDB EmbeddingService; retrieveSemantic(queryText, …) does real vector search over stored units; SAFLA prunes/evolves the knowledge base.
Get started
npm install dspy.ts- Maintenance
- Active
- Last commit yesterday
- Stars
- 273
- On GitHub
- Licence
- MIT
- Allows business use
- Downloads for
- None listed
- No release files
- Latest version
- v2.3.0
- Released 3 days ago
- Built with
- TypeScript
- 99% of the code
Is it looked after?
- Contributors
- 1
- Last 90 days
- Issues
- 29% closed
- 5 still open
- Pull requests
- 11 merged
- 1 waiting
- Releases
- 1
- 1 in the last year
- No contributing guide
- No security policy
- No code of conduct
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| Dicklesworthstone / acip | 331 | 11 days ago | Custom | No downloads |
| ju-bezdek / langchain-decorators | 232 | 6 months ago | MIT | No downloads |
More: languages, topics and project record
Languages
- TypeScript 99%
- JavaScript 1%
- Python <1%
- Shell <1%
Topics
- ai-agents
- llm
- prompt-engineering
- rag
- react
- typescript
Project record
- JobOther AI tools
- StatusListed
- Commits65
- Forks37
- Watching3
- Stars in 28 days+1
- CreatedFeb 22, 2025
- First seen by usNov 10, 2026
- CheckedNov 12, 2026
