pbrenotvinciguerra
commited on
Commit
·
23b172b
1
Parent(s):
c406247
cleaning req
Browse files
main.py
CHANGED
@@ -17,7 +17,7 @@ llm = Anyscale(model="mistralai/Mistral-7B-Instruct-v0.1", api_key=os.getenv("AN
|
|
17 |
embed_model = VoyageEmbedding(model_name="voyage-01", voyage_api_key=os.getenv("VOYAGE_API_KEY"))
|
18 |
service_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)
|
19 |
|
20 |
-
if "index" in os.
|
21 |
storage_context = StorageContext.from_defaults(persist_dir=Path("./index"))
|
22 |
else:
|
23 |
UnstructuredReader = download_loader('UnstructuredReader')
|
|
|
17 |
embed_model = VoyageEmbedding(model_name="voyage-01", voyage_api_key=os.getenv("VOYAGE_API_KEY"))
|
18 |
service_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)
|
19 |
|
20 |
+
if "index" in os.listdir():
|
21 |
storage_context = StorageContext.from_defaults(persist_dir=Path("./index"))
|
22 |
else:
|
23 |
UnstructuredReader = download_loader('UnstructuredReader')
|