Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Thanks but I don t understand how and
Thanks but I don t understand how and
Inactive
0
Follow
S
SeaCat
2 years ago
ยท
Thanks, but I don't understand how and what to use here. When I call from_documents, inside it calls the OpenAI() instance where the openai key could be passed to but I don't see any way to do it. Maybe it can be done via customization?
d
S
2 comments
Share
Open in Discord
d
diridiri
2 years ago
Sorry for abbreviations,
you can choose llm to use using the service_context as argument for from_document method (
https://gpt-index.readthedocs.io/en/latest/reference/service_context.html
)
just like
GPTSimpleVectorIndex.from_documents(
city_docs[wiki_title], service_context=service_context
)
S
SeaCat
2 years ago
Yes, exactly. I was able to implement it from this example:
https://gpt-index.readthedocs.io/en/latest/how_to/customization/custom_llms.html#example-changing-the-underlying-llm
Thanks a lot!!
Add a reply
Sign up and join the conversation on Discord
Join on Discord