Tryna get knowledge core to load

This commit is contained in:
Cyber MacGeddon 2025-05-02 20:44:17 +01:00
parent 03d59b62af
commit dddf47d161
5 changed files with 33 additions and 24 deletions

View file

@ -3,11 +3,10 @@ import asyncio
import uuid
from aiohttp import WSMsgType
from .. schema import Metadata
from .. schema import DocumentEmbeddings, ChunkEmbeddings
from .. base import Publisher
from ... schema import Metadata
from ... schema import DocumentEmbeddings, ChunkEmbeddings
from ... base import Publisher
from . socket import SocketEndpoint
from . serialize import to_subgraph
class DocumentEmbeddingsImport:
@ -20,7 +19,7 @@ class DocumentEmbeddingsImport:
self.running = running
self.publisher = Publisher(
pulsar_client, queue = queue, schema = DocumentEmbeddings
pulsar_client, topic = queue, schema = DocumentEmbeddings
)
async def destroy(self):