-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jinja2.exceptions.UndefinedError: 'lumen.ai.memory._Memory object' has no attribute 'sql' #1032
Comments
@ahuang11 could you look at this one? |
@MarcSkovMadsen can you share the CSV with me? I can't seem to reproduce ![]() |
I can no longer reproduce. Even though I cannot reproduce is it not possible to look at the file ai/prompts/AnalystAgent/main.jinja2 and review whether the line |
I added memory.sql to provide the AnalystAgent more context as to how the data was derived, and potentially point out what could've went wrong if the data returned is empty or looks wrong. |
I think there's a simple solution which is to guard all memory lookups in conditions: {% if ''sql' in memory %}
Here is the current SQL query:
```sql
{{ memory.sql }} {% endif %}
|
lumen==0.8.0rc1
Reproduce
Watch the chat repeat the steps a few times and error.
The text was updated successfully, but these errors were encountered: