chore: Update configuration values, create new example, and update Dockerfile and README

This commit is contained in:
unclecode
2024-06-19 18:48:20 +08:00
parent 539263a8ba
commit 350ca1511b
3 changed files with 71 additions and 14 deletions

View File

@@ -71,6 +71,8 @@ class LLMExtractionStrategy(ExtractionStrategy):
self.instruction = instruction
self.extract_type = extraction_type
self.schema = schema
if schema:
self.extract_type = "schema"
self.chunk_token_threshold = kwargs.get("chunk_token_threshold", CHUNK_TOKEN_THRESHOLD)
self.overlap_rate = kwargs.get("overlap_rate", OVERLAP_RATE)