Commit 4673e4d0 by zaid
parents e836b1c4 90f8f852
...@@ -46,7 +46,7 @@ def pdf_text_chunks(text): ...@@ -46,7 +46,7 @@ def pdf_text_chunks(text):
chunks = splitter.split_text(text) chunks = splitter.split_text(text)
return chunks return chunks
#Embedding the text #Embedding the given text
def get_db_from_chunks(text_chunks): def get_db_from_chunks(text_chunks):
db = Redis.from_texts(text_chunks, embeddings, redis_url="redis://localhost:6379") db = Redis.from_texts(text_chunks, embeddings, redis_url="redis://localhost:6379")
return db 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