🔥Join the AI Engineer Bootcamp: Hey there! The second edition of the AI Engineering Cohort is starting soon! 🚀 - Learn with step-by-step lessons and exercises - Join a community of like-minded and amazing people - I'll be there to personally answer all your questions 🤓 - The spots are limited since I'll be directly interacting with you You can join the waitlist now 👉 course.alejandro-ao.com/ Cheers!
@chercm11 күн бұрын
I am Not able to get the schema of the db
@davidtindell9508 ай бұрын
Hi, I reviewed this "Chat with MySQL DB" tutorial yet again and decided to try a more difficult SQL query: "determine the most popular artist in the database based upon total sales.". Of course, I manually ran the full Select -- with three table joins -- to make sure that this new query would work and produce the correct answer(s). To my surprise, the "natural language query" was properly processed by my modified version of your program and produced the correct response: " Iron Maiden with total sales of $138.60 " ! To further test the program, I changed the question to "top three most popular artists". The correct result was again returned: "Iron Maiden, U2, and Metallica" ! Glad to see 'U2' near the top ! Since "langchain-openai" is only at version 0.0.8 and "SQLDatabase" at 0.0.26, we may expect even more NLP Query improvements in the near future [i.e., if 'Altman' & 'Musk' do not mess everything up for all of us !?!]. P.S. Looking forward to the next MySQL vid(s) that you post !
@EricLofland8 ай бұрын
I got an error when I tried your first query - the query was correct (validated in database) but it was prepended by "sql" like this: [SQL: ```sql SELECT a.Name AS Artist, SUM(il.UnitPrice * il.Quantity) AS TotalSales FROM Artist a JOIN Album al ON a.ArtistId = al.ArtistId JOIN Track t ON al.AlbumId = t.AlbumId JOIN InvoiceLine il ON t.TrackId = il.TrackId JOIN Invoice i ON il.InvoiceId = i.InvoiceId GROUP BY a.Name ORDER BY TotalSales DESC LIMIT 1; ```]
@davidtindell9508 ай бұрын
@@EricLofland Thank You! For the feedback. The natural language query worked well for me and ChatGPT4 validated the SQL Query. I have since moved on to testing SQLite and also saving query vectors in ChromaDB. Later, I will try to re-check and reproduce the MySQL Database query and compare it to your results.
@davidtindell9508 ай бұрын
@@EricLofland I reset my laptop for my extension of Alejandro's "Chat with MySQL" Python program. It ran as before and produced both the SQL and Natural Language Query. SQL: run_query("select artist.Name AS ArtistName, COUNT(*) AS TotalSales from \ invoiceline join track on invoiceline.TrackId = track.TrackId \ join album on track.AlbumId = album.AlbumId \ join artist on album.ArtistId = artist.ArtistId \ group by artist.Name order by TotalSales desc limit 3;") NLQ: user_question = 'determine the top three most popular artists in the database based upon total sales.' BOTH Results were very similar: "'The top three most popular artists in the database based on total sales are Iron Maiden with $138.60, U2 with $105.93, and Metallica with $90.09.". Further, I researched any conditions under which "sql" would be prepended to the SELECT statement. I did NOT find any examples of this artifact, however, I did find a good very recent "Medium" article on this subject by " Senthil E " at " levelup.gitconnected.com/llms-meet-sql-revolutionizing-data-querying-with-natural-language-processing-52487337f043 ". As we say "Hope This Helps!" and thanks again for your detailed feedback.
@warrenmarkham88918 ай бұрын
@@davidtindell950 Are you writing up any of your experiments/tests? I'd be interested in seeing the caching of queries and responses into a vector database.
@davidtindell9508 ай бұрын
@@warrenmarkham8891 Hi, I expect to write a new "Medium" article fairly soon, however, I am still currently continuing my R&D. In addition to Alejandro's excellent tutorials, I have found another good tutorial that includes the employment of PyTorch for fast processing of large vector databases: " Maximize ChromaDB Embedding Vectorization Speed with NVidia CUDA GPU and Python Multiprocessing " " Johnny Code " " kzbin.info/www/bejne/bXfZlaqtq9alepY " and " kzbin.info/www/bejne/bXfZlaqtq9alepYsi=a18-dKxTYk2UvRMT ". Also, there are several good current "Medium" articles available on this research subject.
@palanikumarmsc3 ай бұрын
Thank you for this wonderful tutorial. Using this tutorial, I integrated Chat with database with MySQL, MS SQL, PostgreSQL, and MongoDB using HuggingFace's mistralai/Mistral-7B-Instruct-v0.3.
@davidtindell9509 ай бұрын
Thanks for including MySQL and not just SQLite.
@alejandro_ao9 ай бұрын
sure :)
@imranonthenet9 ай бұрын
I really love your tutorials, you are teaching us to create such powerful AI tools in Python that are really useful. I'm surprised that you have only 26K subscribers, you should have millions.
@alejandro_ao9 ай бұрын
thank you man! i hope i will get there someday!
@krisograbek8 ай бұрын
Loving this video, Alejandro! 2 things I'd like to add: 1. I removed the {schema} part from the full_chain prompt and it works great. Only the sql_chain needs schema (to produce the sql query). 2. Your website is down :( Thanks for explaining every bit of your code so well!
@1sanak9 ай бұрын
Nice, looking forward to part 2!
@alejandro_ao9 ай бұрын
Coming soon! 😎
@dgm19499 ай бұрын
Thank you for your videos. As a subscriber to your channel, I look forward to each new one. I would like to make a comment, and perhaps a suggestion for a future video. As a Finance Manager for the last 40+ years, I have come to find these three areas important as it relates to the retrieval of information. What every office need is a way to search: 1) URL's , EXCEL, and PDF on the internet. 2) EXCEL and CSV files locally. (and Securely) 3) PDF and DOC documents locally. (and Securely) And nowadays, you could never get a NON GUI program adopted by the office staff. And of course, all three of the search types would be incorporated into the same GUI. Python based program would be the preferred language. OLLAMA based. NO DOCKER. No wrapper programs like streamlit, etc. Thanks for your time, and keep up the good work.
@alejandro_ao9 ай бұрын
Hey there, thanks for following the channel and for your suggestions! I see what you mean and agree that in order to get an app adopted internally, it should be very straightforward and easy to use. However, I don't see why it shouldn't use streamlit? Streamlit is just a way to build the GUI in a few lines of code. And if what you are interested in is the privacy, you can totally host it internally and have your data never leave your network.
@atagymx19 күн бұрын
Thank you so much for this Tutorial, you have no idea how much i have been struggling on some basic things like ports or pip installing and etc. and you have showed ALL the STEPS unlike the other videos/channels, i really appreciate it. I finally could understood and made an AI Project thanks to you, keep up the good work man!
@alejandro_ao17 күн бұрын
i'm very glad to hear you got this working! great job man! i'll keep posting more tutorials here :)
@msssouza26 ай бұрын
Hi Alejandro. Great post! It helped me a lot. I was trying to find a Gemini alternative to a solution that I learned from a Udemy course, using LangChain and OpenAI Agents to access a SQLite database and pass the results to the OpenAI LLM. I searched for days and found nothing, until I saw your video. Now my code is running and I can see many possibilities for accessing enterprise databases to enable users to obtain results using generative AI. Thank you and greetings from Brazil.
@SanjayRoy-vz5ih9 ай бұрын
Have done it with SAP Hana DB 6 month back..issue related hallucinations are faced and token size limit is also a constraint with open ai GPT 3.5 turbo
@kaiser_the_emperor6 ай бұрын
Did you make it work at the end? Or was not worth the struggle?
@SanjayRoy-vz5ih6 ай бұрын
@@kaiser_the_emperor Not much work done on that further but of course you can use combination of SQL agent and combinations of prompt techniques but the issues is different as you SAP would not support or recommend working directly with SQL tables but I would still try it as Q&A bot simply as an "art of possible" solution...I am now trying to do the same using combination of OData API and through BTP using function calls and agent architecture
@shreyasb.s38196 күн бұрын
Really wonderful explanation and presentation.. Each and every line of code explanation is mind bowling.. I liked it❤ thank you so much
@neelarahimi10532 ай бұрын
Thank you for the amazing video. I have seen practices where they make "vector stores" from DB schema, using LangChain's vectorization and provide that to LLM in the prompt, rather than sql-generated schema. Which practice is preferred?
@brunocarvalho32294 ай бұрын
Hey Alejandro! Amazing content, it helped a lot with the application we're building on my company right now. One question, let's say that the user wants to give some feedback on the output and wants to generate again? Would I have to run the full chain again ? Do you already have another walkthrough on this memory context? Thanks!
@tannerdio3337 ай бұрын
Dude, incredible tutorial, right on the money for what i needed.
@Jaypatel5129 ай бұрын
Hey, thanks for the video. However, few questions if you don't mind: 1. Do we need to assign the sql_chain inputs again when building a full_chain ? Won't it remember from its own structure. I see that as complexity grows, we end up adding a whole bunch of assignment in full chain. 2. For full chain, is there a way to use pipe operator to let the sql_chain response be passed to the next step where you run_query ? Basically, RunnablePassthrough.assign(sql_chain) | run_query | prompt | llm | StrOutput... ? Thanks again for your wonderful tutorials.
@reinerzufall31236 ай бұрын
you just think too complicated 😉
@funmiemore1948 ай бұрын
First time here and I'm glad I gound your channel.Thanks for sharing!
@alejandro_ao8 ай бұрын
hey there! welcome to the channel :) very happy to have you here :)
@funmiemore1948 ай бұрын
@@alejandro_ao Thanks!!
@anismairi8658 ай бұрын
When i write the code in py file, the schema variable in full_chain function s returning an error (it expect dict type and get_schema return str), do you have any idea on how to fix it ? i've checked langchain doc + you article but i still cant find a solution... thanks for all the tutorials i've learned a lot, keep going !
@justinchang35737 ай бұрын
Having the same issue
@victorchrist98998 ай бұрын
for the GUI, what tool would you suggest one can use to return a table, just like in mysql
@tanzeelmohammed91577 ай бұрын
Hi Alejandro I have been trying to do the same thing. The problem I do not have credit in OpenAI and i wanted to know if there is any other way using opensource models to achieve the same result..specially in LangChain. Is there any other way?
@student72619 ай бұрын
Awesome. Looking forward to part 2....
@abhishekbourai18328 ай бұрын
Thanks for such amazing resource, Alejandro.. i am getting this error: attributeerror : dict object has no attribute get_table_info.. when i try to invoke chain
@alejandro_ao7 ай бұрын
seems to me like your database instance is not being created. try logging the type of your SQL client to see if it was actually defined
@machinelearningzone.62307 ай бұрын
Awesome tutorial! I tried to implement the same on collar, using a sqlite database(chinook). but consistently get the error:"'NoneType' object has no attribute 'get_table_info'" when I try to ge the table schema. Any work arounds?
@ishanagrawal3962 ай бұрын
Thanks! This is helpful! How can we create it with Open Source model instead of Open AI as it is paid? Also, Is there a github repo for this?
@Aidev78769 ай бұрын
Thanks. What about long ot short term memory during conversation?
@legilord37865 ай бұрын
thanks for the great video, does it matter how big the database is? or can a database be too big? in my case i have a database with a size of about 300mb
@abhaypkyek9 ай бұрын
You really made my day. i was trying to figure out this code from Langchain templates from many days. But you gave a perfect clarity giving step by step understanding. Thanks alot for that. Can u further enhance this in your next video as said in the end of the video with ollama & vizualization from the response using PandasAI or LIDA AI or something better please.
@alejandro_ao9 ай бұрын
it's great to hear this! thank you for letting me know. and congrats for finally getting through it! keep it up 👍 that's actually a great idea. i'll see if i can put it in the next video or make a dedicated video about this!
@dr.aravindacvnmamit37709 ай бұрын
Hey very nice, I had one query , LLM based Application to assess the quality of language being used by parents and give practice sessions to improve them. Can you show us "It is a kind of Therapy for special children to make understand the words
@TS-ml4dp3 ай бұрын
Hey Alejandro , your guides are great , the best in the net. I would like to ask if you think that replace the schema with Knowledge graph is a good Idea , the reason is that in practice in large DB and DWH the meta data on tables & fields name are not align with business terms and the idea is to leverage the meta data via knowledge graph. what do you think? can you do some guide about KG?
@fbravoc97489 ай бұрын
Amazing video!! Thanks for creating it!! Is there a way to apply the same principles but with another LLMs (open-source)?? If I had gone over all the database I am working with and I had identified the queries related to the most frequent questions, how can I finetune my queries to these frequent questions? ..should I think about adding RAG logic to it?
@rameshh38216 ай бұрын
Could you please let me know if it's possible to use LangChain to query multiple tables and generate data visualizations on the chatbot interface? I've seen solutions for a single CSV file using PandasAI or LIDA, but I haven't found anything that works with multiple tables stored in a database.
@chercm15 күн бұрын
Hi . It is great video . Is it possible to use azure open ai and Microsoft sql with this ?
@bitcoinjc6 ай бұрын
Will this work with a Microsoft SQL relational database that is much bigger too?
@Rajat_Jaiswal5 ай бұрын
Thanks works well . Amazing tutorial
@alejandro_ao5 ай бұрын
Great to hear! All the best!
@arunsnmimtimt5 ай бұрын
@alejandro_ao,can you kindly let me know whether it can be done with out API. that is to run the same locally on desktop?
@frankfromthebulb61812 ай бұрын
Great job! Your Calendly link in the description isn't working. How can I get in contact with you for a project?
@chercm12 күн бұрын
hi do you any thing for chat with Microsoft SQL DB ?
@heaton9229 ай бұрын
Love to watch your tutorials. It's very details.
@alejandro_ao9 ай бұрын
thanks! keep it up!
@teddyperera85316 ай бұрын
This is a great tutorial. Thanks for explaining it in a way that's easy to understand
@alejandro_ao6 ай бұрын
thanks Teddy! i’m glad it was useful!
@jatinnandwani66789 ай бұрын
Thanks Alejandro!
@alejandro_ao9 ай бұрын
Thank you man, you are amazing
@drummermike51509 ай бұрын
Great tutorial as usual Alejandro! Is it possible to do this with SQL Server? I look at the documentation and it doesn't appear so but maybe I'm missing something.
@alejandro_ao9 ай бұрын
Thanks! I am not sure how it would work with MS SQL Server. I suppose you would need a driver to connect it. Since SQLAlchemy supports it, I suppose that it can be done. Maybe if you add the driver to the URI like we did here, but instead of adding the MySQL driver, you add one for MS SQL Server? I checked and this driver might work, but I am not on Windows, so I have no way of testing it right away: ```python from langchain_community.utilities import SQLDatabase db_uri = "mssql+pyodbc://username:password@hostname:port/DatabaseName?driver=SQL+Server" db = SQLDatabase.from_uri(db_uri) ```
@drummermike51509 ай бұрын
@@alejandro_aoI'll give that a try. Thanks much!!
@av17438 ай бұрын
Thanks for posting this. Very helpful. is there any open source LLM which can convert Natural language to SQL ? would Llama, Flan T5 etc work instead of gpt ?
@batyratamamedov76332 ай бұрын
Thank you for the video, can you please make a video or guide to implement it with Ollama and postgres database? Thanks in advance!
@Sunny-tk2fu5 ай бұрын
No doubt your tutorial is awesome but i want to just suggest that you should minimize the sibilant sound through davinci resolve or other video editing software to be making video more compelling
@alejandro_ao4 ай бұрын
this is a great suggestion. i actually use resolve but didn't know i could do that. thank you!
@adnank49809 ай бұрын
Love your videos, started watching all your langchain and it really has helped me and I wanted to say thanks. I would also like to see the use of agents if it isnt too much to ask
@alejandro_ao9 ай бұрын
hey there! thank you for telling me this :) keep it up and keep learning 🚀 i'll bring up agents here very soon!
@arishasaeed4 күн бұрын
Can we add memory to this architecture? So this bot is conversational
@BrandonFoltz9 ай бұрын
Fabulous!
@alejandro_ao9 ай бұрын
hey Brandon! thanks!
@AbhinavKumar-tx5er3 ай бұрын
Will it work with large dataset? lets say more than 20GB?
@scratch-90976 ай бұрын
Hey , is it possible to run DML queries using chains or agents?
@mazinzain71219 ай бұрын
I love your content, thanks for all your efforts ❤
@alejandro_ao9 ай бұрын
i appreciate it! let me know what you want to see next
@RedWhiteBlue2095 ай бұрын
Could you please post your requirements.txt? When running your code, I got this error: ImportError: cannot import name 'LangSmithParams' from 'langchain_core.language_models.chat_models'
@tinytube4me-z8h5 ай бұрын
When running your code, I got this error: ImportError: cannot import name 'LangSmithParams' from 'langchain_core.language_models.chat_models'. Could you please post your requirements.txt? Thank you!
@uplifting_sounds3 ай бұрын
Love the idea, tried it but constraints from openai.
@marvinmarkham84056 ай бұрын
Videos are exceptional just very high level and the mic seems close when speaking so its not pleaseant for me to watch the vids with that type of mic calibration. Luckily the website is a better walkthough for me. Thanks for your work
@alejandro_ao6 ай бұрын
hey thank you for the feedback, glad you found the tutorial useful mate. i’ll improve the sound in future vids :)
@lucasgrandini17762 ай бұрын
teria como conversar com o sqlite de um zabbix-server?
@chercm11 күн бұрын
Hi sir I am not able to get the database scheme output even though it is connected
@yashtrisha59195 ай бұрын
Thanks but i follow the tutorial and i am getting this error "xcept MySQLInterfaceError as err:", do i need to replace " " in query full_chain function?
@batigol_97 ай бұрын
I was wondering if your calendly link is working for consultations ?it seems that its down
@sanjayojha19 ай бұрын
Great as always. I personally find the RunnablePassthrough ugly syntax and confusing. Also, using a coding specific LLM we might get better SQL query with less hallucination.
@alejandro_ao9 ай бұрын
hey good to see you again. thanks! i totally agree with you that RunnablePassthrough could be better. and about the LLM, totally. not only better, but also faster, as it would be a smaller model 🤔
@chibuzoemelike64039 ай бұрын
Please what do you mean by coding specific LLM?
@jimgsewell9 ай бұрын
Thank you. This is a real interesting idea. I wonder how complex of a question you can ask it. Can it come up with a query which requires a merging of tables, or returning multiple values? You have me curious.
@mwdcodeninja9 ай бұрын
I have used this method to join across a db of 34 tables to form a master document archive for customer data. I was happy with it.
@alejandro_ao9 ай бұрын
absolutely, it all depends on your LLM's accuracy at executing the queries. in my experience, GPT3 16k is very good. as @sanjayojha1 mentioned, a coding-specific LLM might give you even better results. just don't forget to limit the scope of your MySQL user to avoid security problems!
@chibuzoemelike64039 ай бұрын
@@mwdcodeninja wow, it's glad you've been able to use this before and it performs a join. I'm working on a project with bigquery which has so many data, it doesn't give the desired output as it doesn't perform join, I'll be glad if we can connect and work on it together. Thank you in advance
@chibuzoemelike64039 ай бұрын
@@alejandro_ao please how do we implement a code specific LLM to the chain.
@mwdcodeninja9 ай бұрын
@@chibuzoemelike6403 would you be able to share the schema?
@MuhammadAhmad-o4q27 күн бұрын
Will this method work with multiple db's and 500+ tables ? If not than what can be a way
@alejandro_ao25 күн бұрын
as long as the db ERD schema fits into the context window, you should be good!
@07-bmanohar708 ай бұрын
Does this can be implemented to the large Databases ?
@alejandro_ao8 ай бұрын
absolutely, just be careful that these two things fall within your context window: - the table schemas of your database (unless you have a humungous number of tables, it should be fine). - the results from your query (as they they will be sent back to the model for interpretation). the second point is more tricky than the first one. you may want to update your prompt to make sure that it does not allow to query more than X number of records at a time.
@MrJaczes7 ай бұрын
@@alejandro_ao i thought about this topic to use Views to handle sets form large database and pre-agregate it there
@guanjwcn9 ай бұрын
Awesome. Could you include streaming in part 2 as well?
@alejandro_ao9 ай бұрын
streaming is coming very soon 😎
@bwilliams0609 ай бұрын
Your videos are the best!
@alejandro_ao9 ай бұрын
you are the best
@wg59208 ай бұрын
Amazing Video. Great job
@chibuzoemelike64039 ай бұрын
Thank you so much for this video, this is really helpful!! Looking forward to using huggingface models
@alejandro_ao9 ай бұрын
Great! Which models in particular are you interested in?
@palanikumarmsc7 ай бұрын
Mistral AI
@isvic0078 ай бұрын
Can we not using Oracle DB for this test?
@warrenmarkham88918 ай бұрын
Thanks for the content. The link to your blog post doesn't work for me.
@alejandro_ao8 ай бұрын
hey there, can you try again? i think my dns server was giving me trouble last week
@warrenmarkham88918 ай бұрын
@@alejandro_ao Still not working I'm afraid.
@alejandro_ao8 ай бұрын
@@warrenmarkham8891 just refreshed the DNS settings on netlify! Should be up now!!
@warrenmarkham88918 ай бұрын
@@alejandro_ao Yep, you punched the right ticket that time. It is now working great.
@geekyprogrammer48319 ай бұрын
Can you create langchain based streaming chatbot? Would be very helpful. Thanks for creating high quality contents!
@alejandro_ao9 ай бұрын
coming very soon!
@prashu2592512 күн бұрын
Can I DEPLOY this in my company ? Or it can cause data breaches?
@alejandro_ao12 күн бұрын
there is some data going to the OpenAI servers. if you are fine with that, go for it! else, you can either use a secure deployment on Azure OpenAI or host your own model :)
@SandhiniGopinathan8 ай бұрын
It's a wonderful session but the link to your blog post doesn't working.
@alejandro_ao8 ай бұрын
just fixed it! DNS propagation problem after meddling with some records on netlify :S
@artislove4919 ай бұрын
Great stuff! Many thanks 💪
@alejandro_ao9 ай бұрын
No problem 👍
@StnImg9 ай бұрын
❤❤Can u apply RAG on schema to accommodate bigger Databases with huge tables in next video?
@dswithanand7 ай бұрын
I have a question: If the database belongs to an e-commerce website with a substantial product inventory, and a user query such as 'SHOW ME PRODUCTS' risks exceeding the ChatGPT token limit of 60000, how can this issue be effectively managed?
@alejandro_ao7 ай бұрын
Yeah, maybe that will require a bit of prompt engineering to make sure that you never index more than X number of records. You could add something like "if you are selecting records, please never call more than 100 records in a single query" or something like that. another alternative would be to use an agent, that would make it more flexible
@dswithanand7 ай бұрын
@@alejandro_ao Thanks for reply.. I tested this and it actually worked. Thanks bro
@youngchrisyang8 ай бұрын
Thanks so much Alejandro! Great contents. Btw seems your website is down today>?
@alejandro_ao8 ай бұрын
hey there, thanks! can you check again? i think my dns has been struggling with some changes i did recently :S
@youngchrisyang8 ай бұрын
@@alejandro_ao Thank you Alejandro. All works fine now!
@AdhisashanJ6 ай бұрын
Nice, how to do column mapping. Like "How many creator are there" as input question but we have artist instead. I tried as below but still it not works sql_chain = ( RunnablePassthrough.assign(schema=get_schema, column_mapping=get_column_mapping) | prompt | llm.bind(stop=["\ SQLResult:"]) | StrOutputParser() ) column_mapping = { r'creator|artists': 'artist', # Add more mappings as needed } def get_column_mapping(_): column_mapping_str = " ".join([f"{key}: {value}" for key, value in column_mapping.items()]) return column_mapping_str
@v.svishnu23803 ай бұрын
I have a doubt, Is it safe to connect langchain with production database ?
@alejandro_ao3 ай бұрын
I would recommend that you only do this after thorough testing. and very importantly, do not give write privileges to the MySQL user that you are using to access the database. You don’t want your LLM to be able to update or delete data in your database 👍
@AIWALABRO8 ай бұрын
can you tell me at timestamp 14:29 what is grep SQL, i confused when I was doing , it shows it not recognizing
@alejandro_ao8 ай бұрын
hey there, that's just to only return the lines that contain the string "sql" when doing 'pip freeze'. otherwise i would get the huge list of all the packages installed. 'grep' is a unix command that allows you to filter the output text and return only the lines that contain the passed string 👍
@KurskikhA9 ай бұрын
Hi, been following you for a long time, very cool content. Can you please tell me how to use Langchain for MSSQL or Postgres?
@alejandro_ao9 ай бұрын
hey there! thanks for following the content :) i'll be putting up a video about postgres soon. i actually haven't tested if this would work using a mssql driver. but look, apparently you can pass in a driver just like we did here with mysql, but for MSSQL: docs.sqlalchemy.org/en/20/dialects/mssql.html#module-sqlalchemy.dialects.mssql.pyodbc
@dswithanand7 ай бұрын
I made the sqldb chatbot using fastapi and every thing is working fine except that the chat memory history. Can you suggest how can we implement memory with fastapi.
@dswithanand7 ай бұрын
Can you please answer this
@monica.b1819 ай бұрын
Awesome videos.. really appreciate your efforts 👍 Could you please make a video to create a chat bot for WordPress websites.. because scrapping the content from WordPress websites is a bit tricky and passing them to divide into chunks are throwing errors...please help
@monica.b1819 ай бұрын
@UC1oXUA7qgs0GZc_yk46K2OQ hi, I am grateful you replied to my comment 😊🙏 Actually I don't have access to deal with database..the idea of my project is to create a webchat bot for dynamic WordPress websites, where I can scrape all the content from sitemap.xml and then divide it into chunks -> store in any database like faiss or vector store and finally with streamlit I would able to chat with the content on the site. So I need your help in this, as I am beginner and new to these technologies. Please
@monica.b1819 ай бұрын
@UC1oXUA7qgs0GZc_yk46K2OQ hi, I am grateful you replied to my comment 😊🙏 Actually I don't have access to deal with database..the idea of my project is to create a webchat bot for dynamic WordPress websites, where I can scrape all the content from sitemap.xml and then divide it into chunks -> store in any database like faiss or vector store and finally with streamlit I would able to chat with the content on the site. So I need your help in this, as I am beginner and new to these technologies. Please
@sam-uw3gf9 ай бұрын
great as always bro
@alejandro_ao9 ай бұрын
thank you bro
@Matepediaoficial9 ай бұрын
I love you!! You are the best!!!
@alejandro_ao9 ай бұрын
i love you more
@muneerAbro6 ай бұрын
Very Informative video ❤, can you create this video in PHP
@alejandro_ao6 ай бұрын
hey, thanks! i would like to but unfortunately langchain does not have a PHP version that I know of :( if you are trying to create something like this for a PHP app, I would create an API that deals with these processes in python or js and then have my PHP app query this API
@muneerAbro5 ай бұрын
@@alejandro_ao welcome dear, I tried in php/ laravel, it is working fine but some time it shows response "Unable to generate query". So I am very afraid of this, If I deploy this chat on live server, If I get such response, it will be bad experience for me, can you suggest me How I get rid of this error? this error comes from chatgpt-4o openAi
@KCDELL-r2e8 ай бұрын
Great tutorial, Thanks a lot. I am watching from India and your website is not opening. Don't know why.
@nazarmohammed56819 ай бұрын
chatting with website using gemini pro plz make a video on this???????
@nancynardelli546622 күн бұрын
Gracias!
@alejandro_ao21 күн бұрын
gracias a ti!
@natawebmaster9 ай бұрын
Thanks for useful video)
@alejandro_ao9 ай бұрын
it's my pleasure :)
@monishamonisha-zt3uy8 ай бұрын
When I execute full_chain.invoke ({"question": "how many albums are there in the database?"}) it returns {'question': 'how many albums are there in the database?'}
@kartiksaini-xn6ke7 ай бұрын
i am facing the same issue, did you get any solution ?
@RicardoIturra-w8y9 ай бұрын
Excellent! ♥
@alejandro_ao9 ай бұрын
i really need to update my video on memory. i'll look into it!
@matten_zero9 ай бұрын
Can you do this with NoSQL like MongoDB🙏?
@alejandro_ao9 ай бұрын
great idea
@abhishekshakya29232 ай бұрын
please create a lagchain tutorail series
@MADMAX-rw7jx8 ай бұрын
There is no password in my SQL server what to put in db_uri sir
@madhutera2989 ай бұрын
Thanks!
@madhutera2989 ай бұрын
Hi - how does this work when the response returns table data - example - show me top 10 artists by song streaming count?
@alejandro_ao9 ай бұрын
hey there! thank you so much for the tip!! it totally would work. the results are always a table actually. what happens is that the LLM receives a table-like prompt and reads it as though it were simple text. so in this case, your LLM would receive the table in the prompt and return something like "the top 10 artists are...." and it may even give you more details depending on your initial instructions :)
@seththunder20779 ай бұрын
Could you please do with memory
@alejandro_ao9 ай бұрын
we would have to update the chain and add memory to it! i'll make a video about it!
@seththunder20779 ай бұрын
@@alejandro_ao update the chain how?
@KARAN_RANA369 ай бұрын
one video on SORA by openai it's look's Amaze and it's may be a Opecity between reality and virtual reality
@alejandro_ao9 ай бұрын
I'll do that as soon as I get my hands on it 😈
@Astar-o5k8 ай бұрын
is open ai compulsary?
@alejandro_ao8 ай бұрын
absolutely not. you can import any language model that langchain supports: python.langchain.com/docs/integrations/chat/
@Ans54629 ай бұрын
Chat with MongoDB Database is Possible?
@alejandro_ao9 ай бұрын
a bit more complex but totally possible. i'll make a video about it soon
@florencia94279 ай бұрын
tenes un canal en español?
@alejandro_ao9 ай бұрын
hola! lamentablemente no :( pero creo que youtube traduce los subtítulos automáticamente, no?