Commit 90f8f852 by Hyder

initial commits

parent c180b90d
......@@ -46,7 +46,7 @@ def pdf_text_chunks(text):
chunks = splitter.split_text(text)
return chunks
#Embedding the text
#Embedding the given text
def get_db_from_chunks(text_chunks):
db = Redis.from_texts(text_chunks, embeddings, redis_url="redis://localhost:6379")
return db
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment