Find answers from the community

Updated 4 months ago

asRetriever options any

At a glance
asRetriever(options?: any): VectorIndexRetriever;


Is there a reason options is typed as any here?
L
p
3 comments
I don't really do much work on the TS library, but my guess from the python perspective is that asRetriever() is on the base index class

As such, the options are specific to the subclass, but they all share that base method, so the options are generic

If you want to see the actual options, check out the actual retriever class (VectorIndexRetriever in this case)
Let me check it up I’ll circle back
I might have a PR.
Add a reply
Sign up and join the conversation on Discord