Commit ·
84e2c52
1
Parent(s): e4b83ec
oops
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ split_documents = text_splitter.split_documents(documents)
|
|
| 51 |
|
| 52 |
### 3. LOAD HUGGINGFACE EMBEDDINGS
|
| 53 |
hf_embeddings = HuggingFaceEndpointEmbeddings(
|
| 54 |
-
model=
|
| 55 |
task="feature-extraction",
|
| 56 |
huggingfacehub_api_token=os.environ["HF_TOKEN"],
|
| 57 |
)
|
|
@@ -137,7 +137,7 @@ rag_prompt = PromptTemplate.from_template(RAG_PROMPT_TEMPLATE)
|
|
| 137 |
"""
|
| 138 |
### 1. CREATE HUGGINGFACE ENDPOINT FOR LLM
|
| 139 |
hf_llm = HuggingFaceEndpoint(
|
| 140 |
-
endpoint_url=
|
| 141 |
task="text-generation",
|
| 142 |
max_new_tokens=512,
|
| 143 |
top_k=10,
|
|
|
|
| 51 |
|
| 52 |
### 3. LOAD HUGGINGFACE EMBEDDINGS
|
| 53 |
hf_embeddings = HuggingFaceEndpointEmbeddings(
|
| 54 |
+
model=HF_EMBED_ENDPOINT,
|
| 55 |
task="feature-extraction",
|
| 56 |
huggingfacehub_api_token=os.environ["HF_TOKEN"],
|
| 57 |
)
|
|
|
|
| 137 |
"""
|
| 138 |
### 1. CREATE HUGGINGFACE ENDPOINT FOR LLM
|
| 139 |
hf_llm = HuggingFaceEndpoint(
|
| 140 |
+
endpoint_url=HF_LLM_ENDPOINT,
|
| 141 |
task="text-generation",
|
| 142 |
max_new_tokens=512,
|
| 143 |
top_k=10,
|