Technical requirements
Most of this code can be run on a CPU, but it is preferable to be run on a GPU. The code is written in PyTorch and uses standard libraries for the most part (PyTorch, Hugging Face Transformers, LangChain, ChromaDB, sentence-transformer
, faiss-cpu
, and so on).
In this chapter, we also use Neo4j as the database for the graph. Although we will do all operations with Python, Neo4j must be installed and you must be registered to use it. The code can be found on GitHub: https://github.com/PacktPublishing/Modern-AI-Agents/tree/main/chr7.