Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,9 @@ from sentence_transformers import SentenceTransformer, util
|
|
| 18 |
from langchain_community.embeddings.fastembed import FastEmbedEmbeddings
|
| 19 |
#from langchain_openai import ChatOpenAI
|
| 20 |
os.environ["OPENAI_API_KEY"] = "sk-.............."
|
| 21 |
-
|
|
|
|
|
|
|
| 22 |
from langchain_groq import ChatGroq
|
| 23 |
|
| 24 |
llmtemplate = """You’re an AI information specialist with a strong emphasis on extracting accurate information from markdown documents. Your expertise involves summarizing data succinctly while adhering to strict guidelines about neutrality and clarity.
|
|
|
|
| 18 |
from langchain_community.embeddings.fastembed import FastEmbedEmbeddings
|
| 19 |
#from langchain_openai import ChatOpenAI
|
| 20 |
os.environ["OPENAI_API_KEY"] = "sk-.............."
|
| 21 |
+
|
| 22 |
+
import os
|
| 23 |
+
os.environ["GROQ_API_KEY"]=os.getenv('GROQ_API_KEY')
|
| 24 |
from langchain_groq import ChatGroq
|
| 25 |
|
| 26 |
llmtemplate = """You’re an AI information specialist with a strong emphasis on extracting accurate information from markdown documents. Your expertise involves summarizing data succinctly while adhering to strict guidelines about neutrality and clarity.
|