Skip to content

Commit d348c52

Browse files
committed
missing url
1 parent be6c21f commit d348c52

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

analysis_module/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ class EntryExtractionSerializer(serializers.Serializer):
159159
class EntryExtractionSerializerLLM(serializers.Serializer):
160160

161161
documents = DocumentEntryExtractionUnionField()
162-
af_id = serializers.CharField()
163-
project_id = serializers.CharField()
162+
af_id = serializers.IntegerField()
163+
project_id = serializers.IntegerField()
164164
callback_url = serializers.CharField()
165165
request_type = serializers.ChoiceField(
166166
choices=ExtractionRequestTypeChoices,

analysis_module/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def get_ecs_id_param_name(request_type: NLPRequest.FeaturesType):
287287
NLPRequest.FeaturesType.TOPICMODEL: "topicmodel_id",
288288
NLPRequest.FeaturesType.GEOLOCATION: "geolocation_id",
289289
NLPRequest.FeaturesType.ENTRY_EXTRACTION: "entryextraction_id",
290-
NLPRequest.FeaturesType.ENTRY_CLASSIFICATION_LLM: "entryextraction_llm_id",
290+
NLPRequest.FeaturesType.ENTRY_EXTRACTION_LLM: "entryextraction_id",
291291
NLPRequest.FeaturesType.TEXT_EXTRACTION: "textextraction_id",
292292
NLPRequest.FeaturesType.SUMMARIZATION_V3: "summarization_id"
293293
}
@@ -299,7 +299,7 @@ def get_ecs_url(request_type: NLPRequest.FeaturesType):
299299
NLPRequest.FeaturesType.TOPICMODEL: urljoin(TOPICMODEL_ECS_ENDPOINT, "/get_excerpt_clusters"),
300300
NLPRequest.FeaturesType.GEOLOCATION: urljoin(GEOLOCATION_ECS_ENDPOINT, "/get_geolocations"),
301301
NLPRequest.FeaturesType.ENTRY_EXTRACTION: urljoin(ENTRYEXTRACTION_ECS_ENDPOINT, "/extract_entries"),
302-
NLPRequest.FeaturesType.ENTRY_CLASSIFICATION_LLM: urljoin(ENTRYEXTRACTION_ECS_ENDPOINT, "/extract_entries_llm"),
302+
NLPRequest.FeaturesType.ENTRY_EXTRACTION_LLM: urljoin(ENTRYEXTRACTION_ECS_ENDPOINT, "/extract_entries_llm"),
303303
NLPRequest.FeaturesType.TEXT_EXTRACTION: urljoin(TEXT_EXTRACTION_ECS_ENDPOINT, "/extract_document"),
304304
NLPRequest.FeaturesType.SUMMARIZATION_V3: urljoin(SUMMARIZATION_V3_ECS_ENDPOINT, "/generate_report")
305305
}

core_server/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
SUMMARIZATION_V3_ECS_ENDPOINT = env("SUMMARIZATION_V3_ECS_ENDPOINT")
5757
TEXT_EXTRACTION_ECS_ENDPOINT = env("TEXTEXTRACTION_ECS_ENDPOINT")
5858
ENTRYEXTRACTION_ECS_ENDPOINT = env("ENTRYEXTRACTION_ECS_ENDPOINT")
59-
ENTRYEXTRACTION_ECS_ENDPOINT = env("ENTRYEXTRACTION_LLM_ECS_ENDPOINT")
59+
ENTRYEXTRACTION_LLM_ECS_ENDPOINT = env("ENTRYEXTRACTION_LLM_ECS_ENDPOINT")
6060
GEOLOCATION_ECS_ENDPOINT = env("GEOLOCATION_ECS_ENDPOINT")
6161
TOPICMODEL_ECS_ENDPOINT = env("TOPICMODEL_ECS_ENDPOINT")
6262

core_server/urls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
)
3232

3333
from analysis_module.views.predictions_v2 import entry_classification as llm_entry_classification
34+
from analysis_module.views.entry_extraction_v2 import entry_extraction as llm_entry_extraction
3435
from analysis_module.views.entry_extraction import (
3536
entry_extraction
3637
)
@@ -44,6 +45,7 @@
4445
path("api/v1/summarization/", summarization),
4546
path("api/v1/text-extraction/", text_extraction),
4647
path("api/v1/entry-extraction-classification/", entry_extraction),
48+
path("api/v1/entry-extraction-classification-llm/", llm_entry_extraction),
4749
path("api/v1/ngrams/", ngrams),
4850
path("api/v1/geolocation/", geolocation),
4951
path("api/v1/tags-mapping/", tags_mapping),

0 commit comments

Comments
 (0)