Hello,
@kapa.ai I am using
gpt-4
as the model in the below setup.
llm_predictor = LLMPredictor(
llm=ChatOpenAI(model_name="gpt-4", max_tokens=512, temperature=0.1))
service_context = ServiceContext.from_defaults(
llm_predictor=llm_predictor, chunk_size_limit=512
)
UnstructuredReader = download_loader("UnstructuredReader", refresh_cache=True)
loader = UnstructuredReader()
document = loader.load_data(file=Path(path), split_documents=False)
index = GPTVectorStoreIndex.from_documents(document, service_context=service_context)
index.storage_context.persist()
It works fine.
However, when I check my open ai profile, it is using the
text-davinci
api and Not gpt-4. Any idea?