Mohamed284 commited on
Commit
f40ee76
·
verified ·
1 Parent(s): 602c0c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,7 +12,8 @@ import google.generativeai as genai
12
  from functools import lru_cache
13
  from tenacity import retry, stop_after_attempt, wait_exponential
14
  from langchain_community.retrievers import BM25Retriever
15
- from langchain_community.vectorstores import FAISS
 
16
  from langchain_core.embeddings import Embeddings
17
  from langchain_core.documents import Document
18
  from collections import defaultdict
@@ -210,7 +211,7 @@ class EnhancedRetriever:
210
  SYSTEM_PROMPT = """**Biomimicry Expert Guidelines**
211
  1. Base answers strictly on context
212
  2. **Bold** technical terms
213
- 3. Include reference links at the end of the response
214
 
215
  Context: {context}"""
216
 
 
12
  from functools import lru_cache
13
  from tenacity import retry, stop_after_attempt, wait_exponential
14
  from langchain_community.retrievers import BM25Retriever
15
+ from langchain_community.vectorstores import
16
+ FAISS
17
  from langchain_core.embeddings import Embeddings
18
  from langchain_core.documents import Document
19
  from collections import defaultdict
 
211
  SYSTEM_PROMPT = """**Biomimicry Expert Guidelines**
212
  1. Base answers strictly on context
213
  2. **Bold** technical terms
214
+ 3. Must Include reference links
215
 
216
  Context: {context}"""
217