Find answers from the community

Updated 9 months ago

e.g. of current

e.g. of current

Plain Text
return StorageContext.from_defaults(
            vector_store=FilteredDocumentVectorStore(
                client=store_config.qdrant_client,
                collection_name=f"{store_config.index_name}"
            )
        )
L
i
5 comments
Service context still works! But deprecated with a warning for now.

If you want to migrate
a) Use Settings for any global defaults
b) pass in llm/embed model as needed for specific APIs

VectorStoreIndex(..., embed_model=embed_model)

index.as_query_engine(..., llm=llm)
Got it. I have no global defaults, so I’ll make a container for those values called something like NotServiceContext and have my subclasses automatically pass those to the constructor
Let me know if you have any questions! Hopefully intellisense helps you with which kwargs go where 🙂
Will do. I don’t think it’ll be too bad.
Add a reply
Sign up and join the conversation on Discord