Spaces:
Running
Running
Update ES sources config
Browse files
ask_candid/base/retrieval/sources.py
CHANGED
|
@@ -3,7 +3,7 @@ from ask_candid.base.retrieval.schemas import ElasticSourceConfig
|
|
| 3 |
|
| 4 |
CandidBlogConfig = ElasticSourceConfig(
|
| 5 |
index_name="search-semantic-blog",
|
| 6 |
-
semantic_fields=("semantic_title_summary_tags_text", "semantic_authors_text","semantic_content"),
|
| 7 |
text_fields=("title", "summary", "content", "authors_text"),
|
| 8 |
highlight_fields=("semantic_content",),
|
| 9 |
excluded_fields=("content",)
|
|
@@ -11,14 +11,27 @@ CandidBlogConfig = ElasticSourceConfig(
|
|
| 11 |
|
| 12 |
|
| 13 |
CandidHelpConfig = ElasticSourceConfig(
|
| 14 |
-
index_name="search-semantic-
|
| 15 |
-
semantic_fields=("
|
|
|
|
|
|
|
|
|
|
| 16 |
)
|
| 17 |
|
| 18 |
|
| 19 |
CandidLearningConfig = ElasticSourceConfig(
|
| 20 |
-
index_name="search-semantic-
|
| 21 |
-
semantic_fields=("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
)
|
| 23 |
|
| 24 |
|
|
|
|
| 3 |
|
| 4 |
CandidBlogConfig = ElasticSourceConfig(
|
| 5 |
index_name="search-semantic-blog",
|
| 6 |
+
semantic_fields=("semantic_title_summary_tags_text", "semantic_authors_text", "semantic_content"),
|
| 7 |
text_fields=("title", "summary", "content", "authors_text"),
|
| 8 |
highlight_fields=("semantic_content",),
|
| 9 |
excluded_fields=("content",)
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
CandidHelpConfig = ElasticSourceConfig(
|
| 14 |
+
index_name="search-semantic-help",
|
| 15 |
+
semantic_fields=("semantic_content", "semantic_title_summary_question_category"),
|
| 16 |
+
text_fields=("title", "summary", "content_question"),
|
| 17 |
+
highlight_fields=("semantic_content",),
|
| 18 |
+
excluded_fields=("content_html", "content")
|
| 19 |
)
|
| 20 |
|
| 21 |
|
| 22 |
CandidLearningConfig = ElasticSourceConfig(
|
| 23 |
+
index_name="search-semantic-learning",
|
| 24 |
+
semantic_fields=("semantic_title_short_description", "semantic_lessons_description","semantic_lessons_content"),
|
| 25 |
+
text_fields=("title", "short_description", "lesson_list.description", "lessson_content.content"),
|
| 26 |
+
highlight_fields=("semantic_lessons_content",),
|
| 27 |
+
excluded_fields=(
|
| 28 |
+
"lesson_content.content_html",
|
| 29 |
+
"lesson_list.description_html",
|
| 30 |
+
"semantic_lessons_content",
|
| 31 |
+
"semantic_lessons_description",
|
| 32 |
+
"lesson_content.content",
|
| 33 |
+
"lesson_list.description"
|
| 34 |
+
)
|
| 35 |
)
|
| 36 |
|
| 37 |
|