diff --git a/api/__init__.py b/api/__init__.py index 6021df90..73195340 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -1487,6 +1487,7 @@ class LoLLMsAPI(LollmsApplication): docs, sorted_similarities = self.personality.vectorizer.recover_text(query, top_k=self.config.data_vectorization_nb_chunks) for doc, infos in zip(docs, sorted_similarities): documentation += f"document chunk:\nchunk path: {infos[0]}\nchunk content:{doc}" + documentation += "\nrequest: Use the documentation data to answer the user questions. If the data is not present in the documentation, please notify the user." except: self.warning("Couldn't add documentation to the context. Please verify the vector database") # Check if there is discussion history to add to the prompt