mlara commited on
Commit
c0b054b
1 Parent(s): f81db3e

third commit

Browse files
Files changed (1) hide show
  1. earnings_app.py +3 -0
earnings_app.py CHANGED
@@ -29,6 +29,7 @@ import llama_index
29
  from llama_index.embeddings import OpenAIEmbedding
30
  from llama_index import ServiceContext
31
  from llama_index.llms import OpenAI
 
32
 
33
  set_global_handler("wandb", run_args={"project": "final-project-v1"})
34
  wandb_callback = llama_index.global_handler
@@ -100,6 +101,8 @@ service_context = ServiceContext.from_defaults(
100
  embed_model=embed_model,
101
  )
102
 
 
 
103
 
104
  storage_context = wandb_callback.load_storage_context(
105
  artifact_url="llmop/final-project-v1/earnings-index:v0"
 
29
  from llama_index.embeddings import OpenAIEmbedding
30
  from llama_index import ServiceContext
31
  from llama_index.llms import OpenAI
32
+ from llama_index import GPTVectorStoreIndex
33
 
34
  set_global_handler("wandb", run_args={"project": "final-project-v1"})
35
  wandb_callback = llama_index.global_handler
 
101
  embed_model=embed_model,
102
  )
103
 
104
+ index = GPTVectorStoreIndex.from_documents([], service_context=service_context)
105
+
106
 
107
  storage_context = wandb_callback.load_storage_context(
108
  artifact_url="llmop/final-project-v1/earnings-index:v0"