Technical requirements
Going back to the code we have discussed over the past chapters, this chapter focuses on just this line of code:
vectorstore = Chroma.from_documents( Â Â Â Â documents=splits, Â Â Â Â embedding=OpenAIEmbeddings())
The code for this chapter is here: https://github.com/PacktPublishing/Unlocking-Data-with-Generative-AI-and-RAG/tree/main/Chapter_07
The filename is CHAPTER7-1_COMMON_VECTORIZATION_TECHNIQUES.ipynb
.
And Chapter 8 will focus on just this line of code:
retriever = vectorstore.as_retriever()
Is that it? Just those two lines of code for two chapters? Yes! That shows you how important vectors are to the RAG system. And to thoroughly understand vectors, we start with the fundamentals and build up from there.
Let’s get started!