Add LightMem src to Python path.
(self)
| 422 | "usage": None, |
| 423 | "entry_type": entry_type |
| 424 | } |
| 425 | |
| 426 | with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor: |
| 427 | try: |
| 428 | results = list(executor.map(process_segment_wrapper, enumerate(extract_list))) |
| 429 | except Exception as e: |
| 430 | print(f"Error in parallel processing: {e}") |
| 431 | results = [None] * len(extract_list) |
| 432 | |
| 433 | return results |
| 434 | |
| 435 | def _call_update_llm(self, system_prompt, target_entry, candidate_sources): |