File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
admin-api-lib/src/admin_api_lib/impl/api_endpoints Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ def __init__(
83
83
self ._extractor_api = extractor_api
84
84
self ._rag_api = rag_api
85
85
self ._settings = settings
86
- self ._sanitize_document_name ()
87
86
self ._key_value_store = key_value_store
88
87
self ._information_mapper = information_mapper
89
88
self ._information_enhancer = information_enhancer
@@ -157,6 +156,13 @@ async def process_confluence(index):
157
156
for t in threads :
158
157
t .join ()
159
158
159
+ async def _aenhance_langchain_documents (self , documents : list [Document ]):
160
+ try :
161
+ return await self ._information_enhancer .ainvoke (documents )
162
+ except Exception as e :
163
+ logger .error ("Exception occured while enhancing confluence langchain document %s" % e )
164
+ raise e
165
+
160
166
async def _delete_previous_information_pieces (self , index = 0 ):
161
167
try :
162
168
await self ._document_deleter .adelete_document (self ._settings .document_name [index ])
Original file line number Diff line number Diff line change 13
13
class DefaultConfluenceExtractor (ConfluenceExtractor ):
14
14
"""Default implementation of the FileExtractor interface."""
15
15
16
- MIN_PAGE_CONTENT_LENGTH = 20
16
+ MIN_PAGE_CONTENT_LENGTH = 10
17
17
18
18
def __init__ (
19
19
self ,
You can’t perform that action at this time.
0 commit comments