testtest123 commited on
Commit
308053f
·
1 Parent(s): 82d183d

Update RAG application backend, LLM services, ingest file safety and frontend components

Browse files
.gitignore CHANGED
@@ -21,3 +21,4 @@ yarn-error.log*
21
  .idea/
22
  *.swp
23
  *.swo
 
 
21
  .idea/
22
  *.swp
23
  *.swo
24
+ *.pkl
RAG_FULL_APPLICATION_FRONTEND/src/pages/SearchPlaygroundPage.jsx CHANGED
@@ -179,7 +179,7 @@ export default function SearchPlaygroundPage() {
179
  handleSearch();
180
  }
181
  }}
182
- placeholder={selectedDoc ? `Ask a question about "${selectedDoc.filename}"...` : "Select a document from the left to start..."}
183
  disabled={!selectedDoc || isQuerying}
184
  className="query-textarea"
185
  />
 
179
  handleSearch();
180
  }
181
  }}
182
+ placeholder={selectedDoc ? `Ask a question about "${selectedDoc.filename}"...` : (documents.length === 0 ? "Upload a document in the Ingestion page to start searching..." : "Select a document from the left to start...")}
183
  disabled={!selectedDoc || isQuerying}
184
  className="query-textarea"
185
  />