@steno-ai/supabase-adapter 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @steno-ai/supabase-adapter
|
|
2
|
+
|
|
3
|
+
Supabase/PostgreSQL storage adapter for Steno. Uses pgvector for embeddings and pg_trgm for keyword search.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @steno-ai/supabase-adapter
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { SupabaseStorageAdapter, createSupabaseClient } from '@steno-ai/supabase-adapter';
|
|
15
|
+
|
|
16
|
+
const client = createSupabaseClient({
|
|
17
|
+
url: process.env.SUPABASE_URL,
|
|
18
|
+
serviceRoleKey: process.env.SUPABASE_SERVICE_ROLE_KEY,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const storage = new SupabaseStorageAdapter(client);
|
|
22
|
+
|
|
23
|
+
// Use with @steno-ai/engine
|
|
24
|
+
import { runExtractionPipeline, search } from '@steno-ai/engine';
|
|
25
|
+
|
|
26
|
+
await runExtractionPipeline({ storage, embedding, cheapLLM, ... }, input);
|
|
27
|
+
const results = await search({ storage, embedding }, options);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Part of [Steno](https://github.com/SankrityaT/steno-ai)
|
|
31
|
+
|
|
32
|
+
The memory layer for AI agents.
|