Add openai text embedding compute task
This commit is contained in:
@@ -63,7 +63,6 @@ class ComputeTask:
|
|||||||
self.params["model_name"] = model_name
|
self.params["model_name"] = model_name
|
||||||
else:
|
else:
|
||||||
self.params["model_name"] = "text-embedding-ada-002"
|
self.params["model_name"] = "text-embedding-ada-002"
|
||||||
|
|
||||||
self.params["input"] = input
|
self.params["input"] = input
|
||||||
|
|
||||||
def display(self) -> str:
|
def display(self) -> str:
|
||||||
|
|||||||
@@ -7,4 +7,6 @@ class KnowledgeBase:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
async def query(self, prompt: AgentPrompt) -> AgentPrompt:
|
async def query(self, prompt: AgentPrompt) -> AgentPrompt:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user