save relationship of objects
This commit is contained in:
@@ -45,7 +45,7 @@ async def test_query_email():
|
||||
|
||||
KnowledgeBase().query(msg_prompt)
|
||||
|
||||
class TestVectorSTorage(unittest.TestCase):
|
||||
class TestKnowledgeBase(unittest.TestCase):
|
||||
def test_embedding(self):
|
||||
asyncio.run(test_embedding_email())
|
||||
|
||||
|
||||
@@ -14,13 +14,13 @@ import asyncio
|
||||
import unittest
|
||||
|
||||
|
||||
async def test_embedding_email():
|
||||
async def test_vector():
|
||||
storage = ChromaVectorStore("test")
|
||||
await storage.insert([1, 2, 3], "test")
|
||||
ids = await storage.query([1, 2, 3], 10)
|
||||
print(ids)
|
||||
|
||||
class TestVectorSTorage(unittest.TestCase):
|
||||
class TestVectorStorage(unittest.TestCase):
|
||||
def test_run(self):
|
||||
asyncio.run(test_vector())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user