Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Remove unnecessary variables

ozanarmaganbf3b58872ba6
diff --git a/include/collection.h b/include/collection.h
index 80f423f0..f9fe4642 100644
--- a/include/collection.h
+++ b/include/collection.h
@@ -145,8 +145,6 @@ private:
// Keep index as the last field since it is initialized in the constructor via init_index(). Add a new field before it.
Index* index;
- nlohmann::json qa;
-
// methods
std::string get_doc_id_key(const std::string & doc_id) const;
diff --git a/include/field.h b/include/field.h
index 97239a49..e8fcd1e7 100644
--- a/include/field.h
+++ b/include/field.h
@@ -55,8 +55,6 @@ namespace fields {
static const std::string from = "from";
static const std::string model_name = "model_name";
static const std::string range_index = "range_index";
- static const std::string qa = "qa";
- static const std::string system_prompt = "system_prompt";
// Some models require additional parameters to be passed to the model during indexing/querying
// For e.g. e5-small model requires prefix "passage:" for indexing and "query:" for querying
diff --git a/src/field.cpp b/src/field.cpp
index 81169a8d..2c5199ad 100644
--- a/src/field.cpp
+++ b/src/field.cpp
@@ -2,7 +2,6 @@
#include "field.h"
#include "magic_enum.hpp"
#include "text_embedder_manager.h"
-#include "conversation_model.h"
#include <stack>
#include <collection_manager.h>
#include <regex>