@turbomem/okf 0.2.0 → 0.2.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 +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @turbomem/okf
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@turbomem/okf) · [Documentation](https://turbomem.dev/adapters/okf)
|
|
3
|
+
[](https://www.npmjs.com/package/@turbomem/okf) · [Documentation](https://docs.turbomem.dev/adapters/okf)
|
|
4
4
|
|
|
5
5
|
Open Knowledge Format (OKF) v0.1 parser, validator, writer, and concept graph for Node.js. Optionally seed [turbomem](https://www.npmjs.com/package/turbomem) agent memory from OKF bundles.
|
|
6
6
|
|
|
@@ -59,7 +59,7 @@ const results = await memory.search("How do I compute weekly active users?", {
|
|
|
59
59
|
|
|
60
60
|
## Documentation
|
|
61
61
|
|
|
62
|
-
**https://turbomem.dev/adapters/okf**
|
|
62
|
+
**https://docs.turbomem.dev/adapters/okf**
|
|
63
63
|
|
|
64
64
|
## License
|
|
65
65
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turbomem/okf",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Open Knowledge Format (OKF) parser, validator, and writer for Node.js",
|
|
5
|
-
"homepage": "https://turbomem.dev",
|
|
5
|
+
"homepage": "https://docs.turbomem.dev",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "arneesh aima",
|
|
8
8
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"zod": "^3.22.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"turbomem": ">=0.1
|
|
48
|
+
"turbomem": ">=0.7.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"turbomem": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"turbomem": "0.7.
|
|
56
|
+
"turbomem": "0.7.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsup",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"lint": "eslint src",
|
|
63
63
|
"typecheck": "tsc --noEmit"
|
|
64
64
|
},
|
|
65
|
-
"readme": "# @turbomem/okf\n\n[](https://www.npmjs.com/package/@turbomem/okf) · [Documentation](https://turbomem.dev/adapters/okf)\n\nOpen Knowledge Format (OKF) v0.1 parser, validator, writer, and concept graph for Node.js. Optionally seed [turbomem](https://www.npmjs.com/package/turbomem) agent memory from OKF bundles.\n\n## Install\n\n```bash\nnpm install @turbomem/okf\n```\n\nFor turbomem integration, also install `turbomem`:\n\n```bash\nnpm install @turbomem/okf turbomem\n```\n\n## Standalone usage\n\n```ts\nimport { parseBundle, validateBundle, buildGraph } from \"@turbomem/okf\";\n\nconst bundle = await parseBundle(\"./knowledge\");\nconst result = validateBundle(bundle);\nconst graph = buildGraph(bundle);\n```\n\n## CLI\n\n```bash\nnpx okf validate ./knowledge\nnpx okf parse ./knowledge\n```\n\n## turbomem integration\n\n```ts\nimport { TurboMemory } from \"turbomem\";\nimport { parseBundle, addFromBundle } from \"@turbomem/okf\";\n\nconst memory = new TurboMemory({\n embeddings: \"openai\",\n storage: \"pglite\",\n extraction: { provider: \"openai\", model: \"gpt-4.1-mini\" },\n openai: { apiKey: process.env.OPENAI_API_KEY },\n});\n\nawait memory.init();\n\nconst bundle = await parseBundle(\"./knowledge\");\nawait addFromBundle(memory, bundle, { userId: \"agent_1\" });\n\nconst results = await memory.search(\"How do I compute weekly active users?\", {\n userId: \"agent_1\",\n limit: 5,\n});\n```\n\n## Documentation\n\n**https://turbomem.dev/adapters/okf**\n\n## License\n\nApache License 2.0\n"
|
|
65
|
+
"readme": "# @turbomem/okf\n\n[](https://www.npmjs.com/package/@turbomem/okf) · [Documentation](https://docs.turbomem.dev/adapters/okf)\n\nOpen Knowledge Format (OKF) v0.1 parser, validator, writer, and concept graph for Node.js. Optionally seed [turbomem](https://www.npmjs.com/package/turbomem) agent memory from OKF bundles.\n\n## Install\n\n```bash\nnpm install @turbomem/okf\n```\n\nFor turbomem integration, also install `turbomem`:\n\n```bash\nnpm install @turbomem/okf turbomem\n```\n\n## Standalone usage\n\n```ts\nimport { parseBundle, validateBundle, buildGraph } from \"@turbomem/okf\";\n\nconst bundle = await parseBundle(\"./knowledge\");\nconst result = validateBundle(bundle);\nconst graph = buildGraph(bundle);\n```\n\n## CLI\n\n```bash\nnpx okf validate ./knowledge\nnpx okf parse ./knowledge\n```\n\n## turbomem integration\n\n```ts\nimport { TurboMemory } from \"turbomem\";\nimport { parseBundle, addFromBundle } from \"@turbomem/okf\";\n\nconst memory = new TurboMemory({\n embeddings: \"openai\",\n storage: \"pglite\",\n extraction: { provider: \"openai\", model: \"gpt-4.1-mini\" },\n openai: { apiKey: process.env.OPENAI_API_KEY },\n});\n\nawait memory.init();\n\nconst bundle = await parseBundle(\"./knowledge\");\nawait addFromBundle(memory, bundle, { userId: \"agent_1\" });\n\nconst results = await memory.search(\"How do I compute weekly active users?\", {\n userId: \"agent_1\",\n limit: 5,\n});\n```\n\n## Documentation\n\n**https://docs.turbomem.dev/adapters/okf**\n\n## License\n\nApache License 2.0\n"
|
|
66
66
|
}
|