point towards data folder
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def RAG_Langchain(query):
|
|
28 |
embeddings = SentenceTransformerEmbeddings(model_name=model_name)
|
29 |
repo_id = "llmware/bling-sheared-llama-1.3b-0.1"
|
30 |
|
31 |
-
loader = DirectoryLoader('', glob="**/*.
|
32 |
|
33 |
documents = loader.load()
|
34 |
|
|
|
28 |
embeddings = SentenceTransformerEmbeddings(model_name=model_name)
|
29 |
repo_id = "llmware/bling-sheared-llama-1.3b-0.1"
|
30 |
|
31 |
+
loader = DirectoryLoader('data/', glob="**/*.pdf", show_progress=True, loader_cls=PyPDFLoader)
|
32 |
|
33 |
documents = loader.load()
|
34 |
|