From the course: Advanced Python Projects: Build AI Applications
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Setting up MongoDB - Python Tutorial
From the course: Advanced Python Projects: Build AI Applications
Setting up MongoDB
- [Narrator] In this project, we're going to create an AI application where you can upload any document or PDF, and it will have the ability to answer any questions related to that document. Think of it like ChatGPT that has knowledge about your document. So let's begin. First, let's install the necessary Python packages. For this type pip install -r. And over here in this file, which is labeled as Requirements.txt, we have the list of all packages that needs to be installed and are going to be used in our program. So what we're going to do is we're going to copy the path of this file and we're going to paste it here and run that. Now that the packages have been installed, let's get to the next step. We're going to hide the Explorer. First, we need to install several Python modules to set up the environment for working with pydantic, MongoDB, and handling errors, through traceback. So here we're importing pydantic for…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Setting up MongoDB4m 24s
-
(Locked)
Generate chat responses using GPT-3.5 and Langchain2m 46s
-
(Locked)
Load conversation history for a given session ID1m 16s
-
(Locked)
Create new sessions and add chat history to existing sessions1m 11s
-
(Locked)
Setup FastAPI app, CORS, S3 session, and obtain a chat response3m 43s
-
(Locked)
Upload files to Amazon S3 storage bucket2m 39s
-
(Locked)
Deploy and run the chatbot4m 2s
-
(Locked)
Challenge: Complete the backend code for file upload2m 13s
-
(Locked)
Solution: Complete the backend code for file upload9m 52s
-
(Locked)
-
-