Log in
Log into community
Find answers from the community
View all posts
Related posts
Was this helpful?
😞
😐
😃
Powered by
Hall
Inactive
Updated 4 months ago
0
Follow
asRetriever options any
asRetriever options any
Inactive
0
Follow
At a glance
p
peanuts
last year
·
asRetriever(options?: any): VectorIndexRetriever;
Is there a reason options is typed as any here?
L
p
3 comments
Share
Open in Discord
L
Logan M
last year
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)
p
peanuts
last year
Let me check it up I’ll circle back
p
peanuts
last year
I might have a PR.
Add a reply
Sign up and join the conversation on Discord
Join on Discord