Skip to content

Commit 2521e76

Browse files
committed
Update documents
1 parent d6386e9 commit 2521e76

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

deploy_ai_search/src/deploy_ai_search/rag_documents.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ def get_index_fields(self) -> list[SearchableField]:
8787
vector_search_dimensions=self.environment.open_ai_embedding_dimensions,
8888
vector_search_profile_name=self.vector_search_profile_name,
8989
),
90-
SearchableField(
91-
name="Keywords", type=SearchFieldDataType.String, collection=True
92-
),
9390
SearchableField(
9491
name="SourceUri",
9592
type=SearchFieldDataType.String,
@@ -129,7 +126,7 @@ def get_index_fields(self) -> list[SearchableField]:
129126
SimpleField(
130127
name="Data",
131128
type=SearchFieldDataType.String,
132-
filterable=True,
129+
filterable=False,
133130
),
134131
],
135132
),
@@ -167,7 +164,6 @@ def get_semantic_search(self) -> SemanticSearch:
167164
title_field=SemanticField(field_name="Title"),
168165
content_fields=[SemanticField(field_name="Chunk")],
169166
keywords_fields=[
170-
SemanticField(field_name="Keywords"),
171167
SemanticField(field_name="Sections"),
172168
],
173169
),
@@ -193,10 +189,6 @@ def get_skills(self) -> list:
193189
"/document/chunks/*", "/document/chunks/*/content"
194190
)
195191

196-
key_phrase_extraction_skill = self.get_key_phrase_extraction_skill(
197-
"/document/chunks/*", "/document/chunks/*/cleaned_chunk"
198-
)
199-
200192
embedding_skill = self.get_vector_skill(
201193
"/document/chunks/*", "/document/chunks/*/cleaned_chunk"
202194
)
@@ -205,15 +197,13 @@ def get_skills(self) -> list:
205197
skills = [
206198
adi_skill,
207199
mark_up_cleaner_skill,
208-
key_phrase_extraction_skill,
209200
embedding_skill,
210201
]
211202
else:
212203
skills = [
213204
adi_skill,
214205
text_split_skill,
215206
mark_up_cleaner_skill,
216-
key_phrase_extraction_skill,
217207
embedding_skill,
218208
]
219209

@@ -229,9 +219,6 @@ def get_index_projections(self) -> SearchIndexerIndexProjection:
229219
),
230220
InputFieldMappingEntry(name="Title", source="/document/Title"),
231221
InputFieldMappingEntry(name="SourceUri", source="/document/SourceUri"),
232-
InputFieldMappingEntry(
233-
name="Keywords", source="/document/chunks/*/keywords"
234-
),
235222
InputFieldMappingEntry(
236223
name="Sections", source="/document/chunks/*/sections"
237224
),

0 commit comments

Comments
 (0)