@absolutejs/rag 0.7.0 → 0.8.0-beta.0
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/dist/adapter-kit/index.js +3 -2
- package/dist/adapter-kit/index.js.map +3 -3
- package/dist/index.js +3 -2
- package/dist/index.js.map +3 -3
- package/dist/manifest.js +86 -4
- package/dist/manifest.js.map +3 -3
- package/package.json +161 -237
|
@@ -21516,6 +21516,7 @@ var ingestRAGSource = async (collection, input) => collection.ingestSource(input
|
|
|
21516
21516
|
var removeRAGSource = async (collection, input) => collection.removeSource(input);
|
|
21517
21517
|
// src/chat/chat.ts
|
|
21518
21518
|
import { Elysia, sse } from "elysia";
|
|
21519
|
+
import { websocket } from "elysia/websocket";
|
|
21519
21520
|
import { createMemoryStore } from "@absolutejs/ai";
|
|
21520
21521
|
import { generateId as generateId2, parseAIMessage } from "@absolutejs/ai";
|
|
21521
21522
|
import { streamAI } from "@absolutejs/ai";
|
|
@@ -29909,7 +29910,7 @@ var ragChat = (config) => {
|
|
|
29909
29910
|
}
|
|
29910
29911
|
});
|
|
29911
29912
|
};
|
|
29912
|
-
const app = new Elysia().ws(path, {
|
|
29913
|
+
const app = new Elysia().use(websocket()).ws(path, {
|
|
29913
29914
|
message: async (ws, raw) => {
|
|
29914
29915
|
const message = parseAIMessage(raw);
|
|
29915
29916
|
if (!message) {
|
|
@@ -31404,5 +31405,5 @@ export {
|
|
|
31404
31405
|
RAG_NATIVE_QUERY_CANDIDATE_LIMIT
|
|
31405
31406
|
};
|
|
31406
31407
|
|
|
31407
|
-
//# debugId=
|
|
31408
|
+
//# debugId=D25B3C804028B59464756E2164756E21
|
|
31408
31409
|
//# sourceMappingURL=index.js.map
|