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
Hi, this might be an easy one, I am
Hi, this might be an easy one, I am
Inactive
0
Follow
o
ogg
12 months ago
Β·
Hi, this might be an easy one, I am using fast API to allow users to access custom retrievers. I'd want to be able to cache or reuse a retriever if multiple questions are asked to it. how can I achieve that ?
L
o
3 comments
Share
Open in Discord
L
Logan M
12 months ago
I think you can set globals on the fastapi app object right?
app.retrievers = {...}
or something?
o
ogg
12 months ago
so similar to the persist directory ?
L
Logan M
12 months ago
uhhh maybe? Like in this case, you are just storing the retriever in memory, as a global
Add a reply
Sign up and join the conversation on Discord
Join on Discord