Spaces:
Runtime error
Runtime error
sharjeel1477
commited on
Commit
•
9ca7a83
1
Parent(s):
46540ed
Update build.py
Browse files
build.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext
|
2 |
from llama_index.vector_stores import PineconeVectorStore
|
3 |
from llama_index.storage.storage_context import StorageContext
|
4 |
import pinecone
|
@@ -22,9 +22,6 @@ def updateBrain(brainName, files):
|
|
22 |
pinecone.init(api_key=pinecone_key,
|
23 |
environment="us-west4-gcp")
|
24 |
|
25 |
-
|
26 |
-
service_context = ServiceContext.from_defaults(
|
27 |
-
prompt_helper=prompt_helper, chunk_size_limit=chunk_size_limit)
|
28 |
documents = []
|
29 |
corrupt = []
|
30 |
newfiles = []
|
|
|
1 |
+
from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext
|
2 |
from llama_index.vector_stores import PineconeVectorStore
|
3 |
from llama_index.storage.storage_context import StorageContext
|
4 |
import pinecone
|
|
|
22 |
pinecone.init(api_key=pinecone_key,
|
23 |
environment="us-west4-gcp")
|
24 |
|
|
|
|
|
|
|
25 |
documents = []
|
26 |
corrupt = []
|
27 |
newfiles = []
|