Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,16 @@ from langchain_text_splitters import RecursiveCharacterTextSplitter
|
|
9 |
import bs4
|
10 |
import torch
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# Define the embedding class
|
13 |
class SentenceTransformerEmbedding:
|
14 |
def __init__(self, model_name):
|
|
|
9 |
import bs4
|
10 |
import torch
|
11 |
|
12 |
+
|
13 |
+
# Initialize LangChain with your API key
|
14 |
+
lc_api = LangChainAPI(api_key=LANGCHAIN_API_KEY)
|
15 |
+
|
16 |
+
|
17 |
+
GROQ_API_KEY = GROQ_API_KEY
|
18 |
+
from langchain_groq import ChatGroq
|
19 |
+
|
20 |
+
llm = ChatGroq(model="llama3-8b-8192")
|
21 |
+
|
22 |
# Define the embedding class
|
23 |
class SentenceTransformerEmbedding:
|
24 |
def __init__(self, model_name):
|