Update app.py
Browse files
app.py
CHANGED
|
@@ -22,12 +22,12 @@ documents = SimpleDirectoryReader('data').load_data()
|
|
| 22 |
model_kwargs = {'device': 'cpu'}
|
| 23 |
encode_kwargs = {'normalize_embeddings': True}
|
| 24 |
embed_model = HuggingFaceInstructEmbeddings(
|
| 25 |
-
model_name="hkunlp/instructor-
|
| 26 |
encode_kwargs=encode_kwargs
|
| 27 |
)
|
| 28 |
llm= LLM = G4FLLM(
|
| 29 |
model=models.gpt_35_turbo,
|
| 30 |
-
provider=Provider.
|
| 31 |
)
|
| 32 |
|
| 33 |
llm = LangChainLLM(llm=llm)
|
|
|
|
| 22 |
model_kwargs = {'device': 'cpu'}
|
| 23 |
encode_kwargs = {'normalize_embeddings': True}
|
| 24 |
embed_model = HuggingFaceInstructEmbeddings(
|
| 25 |
+
model_name="hkunlp/instructor-xl", model_kwargs=model_kwargs,
|
| 26 |
encode_kwargs=encode_kwargs
|
| 27 |
)
|
| 28 |
llm= LLM = G4FLLM(
|
| 29 |
model=models.gpt_35_turbo,
|
| 30 |
+
provider=Provider.ChatgptAi,
|
| 31 |
)
|
| 32 |
|
| 33 |
llm = LangChainLLM(llm=llm)
|