Find answers from the community

S
Shera
Offline, last seen 3 months ago
Joined September 25, 2024
S
Shera
·

Kapa

Hi , kapa.ai isn't answering my questions. Is it a paid subscription?
1 comment
L
@kapa.ai I want to use OpenAIEmbedding(), then in line:
Settings.embed_model = embed_model , what should be value of embed_model?

also how will these lines change as per latest code change:
service_context = ServiceContext.from_defaults(llm=llm)
9 comments
k
S
@kapa.ai as per latest import statements, change these llamaindex imports:
from llama_index.legacy import (
SimpleDirectoryReader, StorageContext,load_index_from_storage
)
from llama_index.legacy import Document
from llama_index.legacy import VectorStoreIndex
from llama_index.legacy import ServiceContext
from llama_index.legacy.llms import OpenAI
from llama_index.legacy.embeddings import OpenAIEmbedding
from llama_index.legacy.query_engine import FLAREInstructQueryEngine
5 comments
L
S
k