Technical requirements
Most of the code in this chapter can be run on a CPU, but it is preferable for it 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).
The code for this chapter can be found on GitHub: https://github.com/PacktPublishing/Modern-AI-Agents/tree/main/chr6.