Spaces:
Sleeping
Sleeping
Update knowledge_engine.py
Browse files- knowledge_engine.py +1 -1
knowledge_engine.py
CHANGED
|
@@ -20,7 +20,7 @@ class KnowledgeManager:
|
|
| 20 |
|
| 21 |
def _initialize_llm(self):
|
| 22 |
# Load local text2text model using HuggingFace pipeline (FLAN-T5 small)
|
| 23 |
-
local_pipe = pipeline("text2text-generation", model="google/flan-t5-small", max_length=
|
| 24 |
self.llm = HuggingFacePipeline(pipeline=local_pipe)
|
| 25 |
|
| 26 |
def _initialize_embeddings(self):
|
|
|
|
| 20 |
|
| 21 |
def _initialize_llm(self):
|
| 22 |
# Load local text2text model using HuggingFace pipeline (FLAN-T5 small)
|
| 23 |
+
local_pipe = pipeline("text2text-generation", model="google/flan-t5-small", max_length=500)
|
| 24 |
self.llm = HuggingFacePipeline(pipeline=local_pipe)
|
| 25 |
|
| 26 |
def _initialize_embeddings(self):
|