This Streamlit Chatbot works over your Notion documents

  Рет қаралды 4,078

Fanilo Andrianasolo

Fanilo Andrianasolo

Күн бұрын

Пікірлер: 28
@akshanshkmr
@akshanshkmr Жыл бұрын
You deserve a million subscribers
@andfanilo
@andfanilo Жыл бұрын
In 7 years maybe ahah. You can claim you were in the first 3000 subscribers :) I should distribute badges depending on when you subscribed!
@cynthrakotoson1902
@cynthrakotoson1902 11 ай бұрын
its an amazing video , thank you
@andfanilo
@andfanilo 11 ай бұрын
Thanks for the support 🙂
@SwanepoelDewald
@SwanepoelDewald Жыл бұрын
Your channel is amazing. You explain everything so clearly and I love the casual funny delivery as well! Its sad to see only 3.4k subs. I guess your content is quite niche. I agree, you deserve a million subscribers.
@andfanilo
@andfanilo Жыл бұрын
Thanks for the support. Building a channel and niching out to a larger audience takes time and energy...but hopefully one day if I hit 10k at least, you'll be able to say you were in the first 3k subscribers 😁
@SwanepoelDewald
@SwanepoelDewald Жыл бұрын
@@andfanilo I'll be rooting for you all the way to 1 million 😉
@SwanepoelDewald
@SwanepoelDewald Жыл бұрын
Thanks!
@andfanilo
@andfanilo Жыл бұрын
I am very grateful for the support, that will pay for multiple cups of tea to support my time editing 💖
@dkly499ssdgh
@dkly499ssdgh Жыл бұрын
That's a big one!
@andfanilo
@andfanilo Жыл бұрын
Way too big 😂 this is a more experimental video, won't probably do that a lot
@fabmeyer_ch
@fabmeyer_ch Жыл бұрын
Thanks for the video, I made a similiar app with Streamlit to query information from JSON files with an LLM. However I am struggling to implement streaming of the LLM response. It seems that with this implementation streamlit waits until the LLM has finished the response. How to overcome this? Any ideas?
@andfanilo
@andfanilo Жыл бұрын
Hey, thanks for watching. You're the 2nd who asks for streaming support, unfortunately I have no easy solution for that yet :/ Well apart from refreshing Streamlit on every small part of the response which...is not pretty...or using some asyncio/threading quirks like in discuss.streamlit.io/t/issue-with-asyncio-run-in-streamlit/7745/7 so the update of the placeholder with a longer streamed text doesn't trigger a full rerun (but that is some advanced stuff) I'm sending the info to the PMs of Streamlit, but in the meantime you're better off waiting for the long response
@andfanilo
@andfanilo Жыл бұрын
You can maybe try kzbin.info/www/bejne/eaLUdn-ujKyIr5o too
@luiscardenas8639
@luiscardenas8639 Жыл бұрын
Get this error when trying to use my own data set : openai.error.InvalidRequestError: This model's maximum context length is 8191 tokens, however you requested 23323 tokens (23323 in your prompt; 0 for the completion). Please reduce your prompt; or completion length.
@xylyx_
@xylyx_ Жыл бұрын
Hello Fanilo, I have a python application which takes some inputs and sends a post request to a rest endpoint where all the computation happens and user awaits for the response with a loading animation on the website. But if the user refreshs the web page, then how to continue from the same place where they left off, I mean from the same state. Your help would mean a lot. Thank you.
@andfanilo
@andfanilo Жыл бұрын
Hey! Yeah session state is deleted after a refresh, so you would need to store this information externally...like store all this info in a local JSON file (wouldn't work well on Streamlit Cloud because you may connect on a different pod in some cases), in a cookie on the browser of the user with github.com/Mohamed-512/Extra-Streamlit-Components, or in a remote database, and then at the start of the app, read state from this file/cookie/database and inject it as original value into your different widgets. Hope this helps quick start!
@xylyx_
@xylyx_ Жыл бұрын
@@andfanilo thanks for the reply. Github repo seems promising, I will try that. Enjoy watching your content.❤️
@1littlecoder
@1littlecoder Жыл бұрын
Welcome to the world of LLMs :)
@andfanilo
@andfanilo Жыл бұрын
Yeah, my company is currently investigating this world, so this video is a bit of me diving head first into it 😆
@arminalimardani2553
@arminalimardani2553 Жыл бұрын
I can't believe streamlit still doesn't have a proper chat API. The current one is really bad. It goes from top to bottom instead of the other way around. When you submit the text, it doesn't remove it, and you have to remove it manually.
@andfanilo
@andfanilo Жыл бұрын
You can +1 here: github.com/streamlit/streamlit/issues/6320 to reinvigorate the discussion In the meantime yeah, your best bet is to reverse the session state list of messages before displaying it for bottom to top, and yes removing the elements from session state when needed 😐 (or use the Gradio one, but I think it's the same behavior?)
@akshanshkmr
@akshanshkmr Жыл бұрын
The layout fix should be doable with placeholders
@andfanilo
@andfanilo Жыл бұрын
Oh I found this nice chat implementation in pure CSS github.com/tipani86/CatGDP/blob/master/src/app.py from the CatGDP demo catgdp.streamlit.app/ you can tinker with it in the meantime (EDIT: there's a blog post about it blog.streamlit.io/chat-with-the-cat-generative-dialogue-processor-catgdp/#how-to-tweak-the-ui-so-it-looks-like-an-actual-chat-program)
@alessandroceccarelli6889
@alessandroceccarelli6889 Жыл бұрын
Would be cool with PDSs too; awesome video though
@andfanilo
@andfanilo Жыл бұрын
Had no clue what PDS was ^^ I suppose one could build a custom data input for this, that could be fun. I do think you still need good data import and cleaning skills to enable those kind of projects, I implemented a Q&A over a lot of PDFs on my own and had lots of trouble correctly parsing the PDFs that other tutorials don't talk about 🤔
@alessandroceccarelli6889
@alessandroceccarelli6889 Жыл бұрын
@@andfanilo *PDFs ... sorry; would be nice if you could share those troubles too.
@andfanilo
@andfanilo Жыл бұрын
I suppose you saw my Langchain/PDFs thread on Twitter :) I do admit I post most of my struggles there!
EVERY Streamlit News You Might Have Missed in Spring/Summer
18:20
Fanilo Andrianasolo
Рет қаралды 2,6 М.
Snowflake Has A New Strategy For Streamlit
14:19
Fanilo Andrianasolo
Рет қаралды 1,9 М.
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,2 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 58 МЛН
I Made a Game with ChatGPT...
10:32
BenBonk
Рет қаралды 1,1 МЛН
Build a Python Web App to chat with your datasets using GenAI
4:23
Tech at Worldline
Рет қаралды 28 М.
Teasing Streamlit’s Next Biggest Changes
9:45
Fanilo Andrianasolo
Рет қаралды 4,8 М.
10 ChatGPT Life Hacks - THAT’LL CHANGE YOUR LIFE !!
11:00
Hayls World
Рет қаралды 2,6 МЛН
Streamlit Elements You Should Know About in 2023
14:31
Mısra Turp
Рет қаралды 100 М.
5 Things I Wish I Knew Before Learning Streamlit
21:34
Fanilo Andrianasolo
Рет қаралды 30 М.
Streamlit AMA App ft. Firestore Database
9:19
Fanilo Andrianasolo
Рет қаралды 4 М.
ChatGPT + Jupyter Notebook = Mindblowing! 🤩
12:40
Thu Vu data analytics
Рет қаралды 37 М.