Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -5
src/streamlit_app.py
CHANGED
|
@@ -30,11 +30,11 @@ supabase = create_client(SUPABASE_URL, SUPABASE_KEY)
|
|
| 30 |
# temperature=0.1,
|
| 31 |
# max_output_tokens=1000
|
| 32 |
#)
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
# --- INITIALIZE GROQ LLM ---
|
| 40 |
# Llama 3.3 70B is the 'Pro' level model for complex industrial reasoning.
|
|
|
|
| 30 |
# temperature=0.1,
|
| 31 |
# max_output_tokens=1000
|
| 32 |
#)
|
| 33 |
+
embeddings = GoogleGenerativeAIEmbeddings(
|
| 34 |
+
model="models/gemini-embedding-001",
|
| 35 |
+
google_api_key=GEMINI_KEY,
|
| 36 |
+
task_type="retrieval_query" # Critical for the app search to work
|
| 37 |
+
)
|
| 38 |
|
| 39 |
# --- INITIALIZE GROQ LLM ---
|
| 40 |
# Llama 3.3 70B is the 'Pro' level model for complex industrial reasoning.
|