Mlops, Large Language Models, Llmops, Vector Database, Embeddings Search.
self.collection.add(embeddings=[embeddings], documents=[item['context']], ids=[f"id_{i}"]) # Method to search the ChromaDB collection for relevant context based on a query def search_context(self, query, n_results=1): query_embeddings = self.embedding_model.encode(query).tolist() return