Technical requirements
This chapter assumes that you have at least beginner-level expertise in Python coding. To follow along with the demos, you’ll need to set up your development environment by completing the following steps:
- Install either
[email protected]
or[email protected]
on the operating system of your choice. - Set up a Python virtual environment and activate it:
$ python3 -m venv venv $ source venv/bin/activate
- You will be using the following packages to develop the demo described in this chapter:
pandas
: Helps with data preprocessing and handlingnumpy
: Handles numerical dataopenai
: For the embedding model and invoking the LLMpymongo
: For the MongoDB Atlas vector store and full-text searchs3fs
: Allows loading data directly from an S3 bucketlangchain_mongodb
: Enables vector search in MongoDB Atlas using a LangChain wrapperlangchain
: Used to build a RAG applicationlangchain-openai
: Enables you to interact with OpenAI chat modelsboto3
: Enables you to interact with AWS...