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 last year
0
Follow
I have developed a rag system now i want
I have developed a rag system now i want
Inactive
0
Follow
a
adeelhasan
last year
ยท
I have developed a rag system now i want to integrate it on my website as a chatbot. What are the ways in which i can do that for example - i am thinking of creating an API in django but problem is how can i return the response in a streaming mode
L
a
l
8 comments
Share
Open in Discord
L
Logan M
last year
I would use fastapi, it's pretty easy to return streaming responses from query engines, I think you just need the generator
a
adeelhasan
last year
@Logan M What do you mean by generator
L
Logan M
last year
Like, the streaming response is called a generator
response.response_gen
So you iterate over that to get each token
for token in response.response_gen
l
lucastonon
last year
Might not be too different with llamaindex
https://indishmarketer.medium.com/streaming-for-langchain-agents-fastapi-6d7ea0effe28
a
adeelhasan
last year
@Logan M i have implement this on Fastapi plz provide ur feedback
Attachment
L
Logan M
last year
seems to make sense. Any specific reason for using deepcopy?
a
adeelhasan
last year
@Logan M no
a
adeelhasan
last year
I am getting this type of response how can i remove data
2)It is possible to get a streaming response like we get in chatgpt
Attachment
Add a reply
Sign up and join the conversation on Discord
Join on Discord