Implementation of a Retrieval-Augmented Generation (RAG) function for machine learning. More...
#include <faiss/Index.h>#include <faiss/IndexFlat.h>#include <cmath>#include <iostream>#include "BaseFunction.h"Go to the source code of this file.
Classes | |
| class | RAG |
| Implements a Retrieval-Augmented Generation (RAG) function for machine learning. More... | |
Functions | |
| std::vector< float > | flatten (const std::vector< std::vector< float > > &vec2D) |
| Flattens a 2D vector into a 1D vector. | |
Implementation of a Retrieval-Augmented Generation (RAG) function for machine learning.
| std::vector< float > flatten | ( | const std::vector< std::vector< float > > & | vec2D | ) |
Flattens a 2D vector into a 1D vector.
| vec2D | The 2D vector to flatten. |