Merge pull request #34 from dbravender/fix-cookbook-rag
Remove get_simple_embedding from node.py for pocketflow-rag example
This commit is contained in:
commit
92fa92685c
|
|
@ -1,7 +1,7 @@
|
|||
from pocketflow import Node, Flow, BatchNode
|
||||
import numpy as np
|
||||
import faiss
|
||||
from utils import call_llm, get_embedding, get_simple_embedding, fixed_size_chunk
|
||||
from utils import call_llm, get_embedding, fixed_size_chunk
|
||||
|
||||
# Nodes for the offline flow
|
||||
class ChunkDocumentsNode(BatchNode):
|
||||
|
|
@ -140,4 +140,4 @@ Answer:
|
|||
shared["generated_answer"] = exec_res
|
||||
print("\n🤖 Generated Answer:")
|
||||
print(exec_res)
|
||||
return "default"
|
||||
return "default"
|
||||
|
|
|
|||
Loading…
Reference in New Issue