You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 93cb809
Browse filesBrowse the repository at this point in the historyBrowse files
- This is the first release of the new embedding-migration architecture for TypeScript
35
+
- The old protocol code (`Isotrieve`, `IsotrieveNegotiator`, `protocol.ts`, `negotiation.ts`) has been removed from `@isotrieve/core`
36
+
- Adapter packages (`adapters-openai`, `adapters-voyage`, `adapters-cohere`, `adapters-huggingface`) still reference the old API and will be updated in a future release
37
+
- This package is pre-1.0. APIs may change between minor versions.
38
+
- v2 format is not backward-compatible with v1 readers; v1 files can still be loaded
# Isotrieve - Agent Embedding Communication Protocol
1
+
# Isotrieve — NPM packages
2
2
3
-
> **⚠️ Historical/Experimental Package**
4
-
> This NPM package is the original protocol prototype. The actively maintained, benchmark-validated project is [`isotrieve-python/`](../isotrieve-python/) — available on [PyPI as `isotrieve`](https://pypi.org/project/isotrieve/). This package is not actively maintained.
3
+
> **Pre-1.0 / Beta** — The TypeScript packages are ports of the Python [`isotrieve`](https://pypi.org/project/isotrieve/) package under active development. The Python package is the mature, benchmark-validated implementation. Do not depend on these packages in production until the production readiness plan (see root README) is closed.
5
4
6
-
Production-ready NPM package for semantic communication between agents using different embedding models.
7
-
8
-
## What is Isotrieve?
9
-
10
-
Isotrieve enables agents with different embedding models to communicate semantic information directly through learned transfer matrices, achieving **2x better semantic preservation** compared to text serialization.
const agent2 =someOtherAgent; // Could be Isotrieve or not
15
+
**Only `@isotrieve/core` has been ported to the new embedding-migration architecture.** The adapter packages still reference the old `Isotrieve` class and `IsotrieveNegotiator` protocol API. They will be updated or removed before any 1.0 release.
59
16
60
-
// Automatically negotiate and send message
61
-
const result =awaitIsotrieveNegotiator.sendMessage(agent1, agent2, 'Hello!');
17
+
## Which package is current?
62
18
63
-
// Isotrieve automatically:
64
-
// ✓ Detects if both support Isotrieve → Uses Isotrieve with 97% fidelity
65
-
// ✓ Detects if only one supports Isotrieve → Falls back to text
66
-
// ✓ Shows clear warning when falling back
67
-
// ✓ Returns result with method info
19
+
**Use the Python package (`pip install isotrieve`) for production migrations.** The TypeScript packages are a work in progress. See the root [README.md](../README.md) for the full production readiness plan.
68
20
69
-
if (result.method==='isotrieve') {
70
-
console.log(`✓ Using Isotrieve with ${(result.expectedSimilarity!*100).toFixed(1)}% fidelity`);
71
-
} else {
72
-
console.log(`⚠️ Using text: ${result.fallbackReason}`);
73
-
}
74
-
```
21
+
## Development
75
22
76
-
**Example Output:**
77
-
```
78
-
# Both support Isotrieve:
79
-
Both agents support Isotrieve. Calibrating...
80
-
✓ Isotrieve enabled with 97.3% semantic fidelity
81
-
82
-
# Only one supports Isotrieve:
83
-
⚠️ Isotrieve not available: Agent 2 does not support Isotrieve. Falling back to text communication.
23
+
```bash
24
+
npm install
25
+
npm run build
26
+
npm test
84
27
```
85
28
86
-
## Features
87
-
88
-
-**2x Better Semantic Preservation** vs text round-trip
89
-
-**Provider-Agnostic** - Works with OpenAI, Anthropic, Cohere, HuggingFace
90
-
-**Quality Monitoring** - Automatic quality tracking with fallback
91
-
-**Lightweight** - Millisecond-level transfer latency
92
-
-**Production-Ready** - Validated on 300k vocabulary, 97% fidelity
0 commit comments