mojuss commited on
Commit
c6b8aa5
1 Parent(s): a624d98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def construct_index(directory_path):
24
  temperature = 0.1
25
 
26
  prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
27
- llm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=temperature, model_name="text-embedding-3-large", max_tokens=num_outputs))
28
  documents = SimpleDirectoryReader(directory_path).load_data()
29
  #index = GPTVectorStoreIndex(documents, llm_predictor=llm_predictor, prompt_helper=prompt_helper)
30
  index = GPTVectorStoreIndex.from_documents(documents, urls=[
 
24
  temperature = 0.1
25
 
26
  prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)
27
+ llm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=temperature, model_name="gpt-3.5-turbo-instruct", max_tokens=num_outputs))
28
  documents = SimpleDirectoryReader(directory_path).load_data()
29
  #index = GPTVectorStoreIndex(documents, llm_predictor=llm_predictor, prompt_helper=prompt_helper)
30
  index = GPTVectorStoreIndex.from_documents(documents, urls=[