Update app.py
Browse files
app.py
CHANGED
@@ -24,21 +24,17 @@ messages_to_prompt=messages_to_prompt,
|
|
24 |
completion_to_prompt=completion_to_prompt,
|
25 |
verbose=True,
|
26 |
)
|
27 |
-
print("working -3")
|
28 |
|
29 |
embed_model = HuggingFaceEmbeddings(model_name="thenlper/gte-large")
|
30 |
|
31 |
-
print("working -2")
|
32 |
|
33 |
service_context = ServiceContext.from_defaults(
|
34 |
chunk_size= 256,
|
35 |
llm=llm,
|
36 |
embed_model=embed_model
|
37 |
)
|
38 |
-
print("working -1")
|
39 |
|
40 |
index = VectorStoreIndex.from_documents(documents, service_context=service_context, show_progress=True)
|
41 |
-
print("working 0")
|
42 |
|
43 |
query_engine = index.as_query_engine()
|
44 |
|
|
|
24 |
completion_to_prompt=completion_to_prompt,
|
25 |
verbose=True,
|
26 |
)
|
|
|
27 |
|
28 |
embed_model = HuggingFaceEmbeddings(model_name="thenlper/gte-large")
|
29 |
|
|
|
30 |
|
31 |
service_context = ServiceContext.from_defaults(
|
32 |
chunk_size= 256,
|
33 |
llm=llm,
|
34 |
embed_model=embed_model
|
35 |
)
|
|
|
36 |
|
37 |
index = VectorStoreIndex.from_documents(documents, service_context=service_context, show_progress=True)
|
|
|
38 |
|
39 |
query_engine = index.as_query_engine()
|
40 |
|