lumen
lumen copied to clipboard
Add lumen.ai
I just tried this out; here are the necessary additional deps to run this:
1640 pip install pydantic
1642 pip install instructor
1644 pip install huggingface_hub
1646 CMAKE_ARGS="-DLLAMA_METAL=on" pip install -U llama-cpp-python --no-cache-dir\n
1648 pip install -U panel
However, I couldn't get it working:
while (unmet_dependencies:=tuple(r for r in subagent.requires if r not in memory)):
subagents = [
agent for agent in self.agents if any(ur in agent.provides for ur in unmet_dependencies)
]
I added this line:
if not subagents:
print(f"Failing to find any subagents to handle the remaining requirements: {unmet_dependencies}.")
continue
The memory seems to not have shared current_source:
Failing to find any subagents to handle the remaining requirements: ('current_source',).
Not sure what precisely was causing that in older Panel versions but the memory works correctly with Panel master.
Made a bunch of updates but one thing I haven't solved is how to deal with the in-memory data source correctly. Since it can't be serialized properly (at least for now), the LumenBaseAgent can't currently render it correctly. I had hacked that for my demo but it needs a proper fix.
Codecov Report
Attention: Patch coverage is 2.22412% with 1143 lines in your changes missing coverage. Please review.
Project coverage is 62.23%. Comparing base (
7f20ec3) to head (9034f47). Report is 4 commits behind head on main.
| Files | Patch % | Lines |
|---|---|---|
| lumen/ai/agents.py | 2.56% | 494 Missing :warning: |
| lumen/ai/assistant.py | 0.00% | 192 Missing :warning: |
| lumen/ai/llm.py | 0.00% | 159 Missing :warning: |
| lumen/ai/translate.py | 0.00% | 150 Missing :warning: |
| lumen/ai/memory.py | 0.00% | 63 Missing :warning: |
| lumen/ai/logs.py | 0.00% | 25 Missing :warning: |
| lumen/ai/embeddings.py | 0.00% | 20 Missing :warning: |
| lumen/ai/models.py | 0.00% | 14 Missing :warning: |
| lumen/pipeline.py | 9.09% | 10 Missing :warning: |
| lumen/sources/base.py | 37.50% | 10 Missing :warning: |
| ... and 3 more |
Additional details and impacted files
@@ Coverage Diff @@
## main #519 +/- ##
==========================================
- Coverage 69.69% 62.23% -7.46%
==========================================
Files 80 89 +9
Lines 9279 10489 +1210
==========================================
+ Hits 6467 6528 +61
- Misses 2812 3961 +1149
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.