-
-
Notifications
You must be signed in to change notification settings - Fork 146
[BUG] 03_Earnings_Call - step 5 #176
Copy link
Copy link
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Bug Description
Getting a output is incomplete due to a max_tokens length limit. I tried setting max_tokens to 128k in LLm call but did not work.
Steps to Reproduce
- Go to '...'
- Run command '...'
- See error
Expected Behavior
A clear and concise description of what you expected to happen.
Actual Behavior
A clear and concise description of what actually happened.
Environment
- OS: [e.g., Windows 10, Ubuntu 22.04, macOS 13.0]
- Python Version: [e.g., 3.9.7]
- Semantica Version: [e.g., 0.0.1]
- Installation Method: [e.g., pip, source, conda]
Code Example
# Minimal code example that reproduces the issue
from semantica import Semantica
core = Semantica()
# ... your code hereError Messages / Logs
2026-01-12 10:00:49,369 - INFO - [RUNNING] | Module: semantic_extract | Submodule: RelationExtractor | Message: Extracting relations using llm...
2026-01-12 10:01:14,076 - WARNING - Instructor generation failed (<failed_attempts>
<generation number="1">
<exception>
The output is incomplete due to a max_tokens length limit.
</exception>
<completion>
ChatCompletion(id='chatcmpl-3d30bf34-af39-4701-9e4a-3449ae120bf2', choices=[Choice(finish_reason='length', index=0, logprobs=None, message=ChatCompletionMessage(content='{\n "relations": [\n {\n "subject": "MDA Space Ltd.",\n "predicate": "HAS_REVENUE",\n "object": "$409.8 million",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "HAS_EBITDA",\n "object": "$82.8 million",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "HAS_MARGIN",\n "object": "20.2%",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "OPERATES_IN",\n "object": "Canada",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "LOCATED_IN",\n "object": "Brampton",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "PARTNERS_WITH",\n "object": "SatixFy Communications Ltd.",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "SERVES",\n "object": "Satellite Systems",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "SERVES",\n "object": "Robotics & Space Operations",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "HAS_GROWTH",\n "object": "45.1%",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "HAS_PROFIT",\n "object": "$46.1 million",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "HAS_PROFIT",\n "object": "$34.7 million",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "HAS_PROFIT",\n "object": "$131.4 million",\n "confidence": 0.95\n },\n {\n "subject": "MDA Space Ltd.",\n "predicate": "HAS_PROFIT",\n "object": "$76.0 million",\n "confiden
Additional Context
- Screenshots (if applicable)
- Related issues or PRs
- Any other context about the problem
Possible Solution
If you have ideas on how to fix this, please share them here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers