Skip to content
Merged

Local #172

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
ff7f670
Update deploy-to-hf.yml
arslanfbt May 24, 2025
1b6af90
Merge branch 'FireBird-Technologies:main' into main
arslanfbt May 24, 2025
2a01aff
Merge branch 'FireBird-Technologies:main' into main
arslanfbt May 26, 2025
a733633
Merge branch 'FireBird-Technologies:main' into main
arslanfbt May 31, 2025
be80f46
Merge branch 'FireBird-Technologies:main' into main
arslanfbt Jun 5, 2025
36326be
Merge branch 'FireBird-Technologies:main' into main
arslanfbt Jun 10, 2025
c664d76
Merge branch 'FireBird-Technologies:main' into main
arslanfbt Jun 10, 2025
1c4afb8
Merge branch 'FireBird-Technologies:main' into main
arslanfbt Jun 21, 2025
942460f
Merge branch 'FireBird-Technologies:main' into main
arslanfbt Jun 26, 2025
5ecdb15
Merge branch 'FireBird-Technologies:main' into main
arslanfbt Jun 26, 2025
48f11e9
Merge branch 'FireBird-Technologies:main' into main
arslanfbt Jun 30, 2025
a92ac1f
Update credits-config.ts
ArslanS1997 Jul 17, 2025
9f5ef73
Merge pull request #1 from ArslanS1997/patch-1
arslanfbt Jul 17, 2025
06b5828
Update credits-config.ts
arslanfbt Aug 3, 2025
311e483
Update credits-config.ts
arslanfbt Aug 3, 2025
c8f3743
Update credits-config.ts
arslanfbt Aug 3, 2025
b821702
Update page.tsx
arslanfbt Aug 3, 2025
fda1ae0
Update route.ts
arslanfbt Aug 3, 2025
85189f1
Update route.ts
arslanfbt Aug 3, 2025
ca4e761
Update route.ts
arslanfbt Aug 3, 2025
1e2013b
Update route.ts
arslanfbt Aug 3, 2025
befaca7
Update route.ts
arslanfbt Aug 3, 2025
8ed3df8
Update route.ts
arslanfbt Aug 3, 2025
8295bff
Update route.ts
arslanfbt Aug 3, 2025
da9dc06
Update page.tsx
arslanfbt Aug 3, 2025
3faeacd
Update route.ts
arslanfbt Aug 3, 2025
60e387a
Update route.ts
arslanfbt Aug 3, 2025
46da874
Update route.ts
arslanfbt Aug 3, 2025
4fce7d4
Update route.ts
arslanfbt Aug 3, 2025
56cad20
Update model_registry.py
arslanfbt Aug 7, 2025
51f47e0
Update model-registry.ts
arslanfbt Aug 7, 2025
fef85ef
Update model_registry.py
arslanfbt Aug 7, 2025
5ff6f89
Update model-registry.ts
arslanfbt Aug 7, 2025
a3b9f1c
Update model-registry.ts
arslanfbt Aug 7, 2025
edef66e
Update model_registry.py
arslanfbt Aug 7, 2025
252b171
Update model_registry.py
ArslanS1997 Aug 8, 2025
20ace65
Update model-registry.ts
ArslanS1997 Aug 8, 2025
237dd85
Update app.py
arslanfbt Aug 8, 2025
9439f4d
Update app.py
arslanfbt Aug 8, 2025
e843c88
Update app.py
arslanfbt Aug 8, 2025
1144364
Update app.py
arslanfbt Aug 8, 2025
a05002c
Update session_routes.py
arslanfbt Aug 8, 2025
ef7f410
Update session_routes.py
arslanfbt Aug 8, 2025
90d6718
Update format_response.py
arslanfbt Aug 8, 2025
2131ff7
Update agents.py
arslanfbt Aug 8, 2025
beaa615
Update agents.py
arslanfbt Aug 8, 2025
424a6a1
Update app.py
arslanfbt Aug 8, 2025
c6fc3a0
Update session_routes.py
arslanfbt Aug 8, 2025
3f1b8b4
Update app.py
arslanfbt Aug 8, 2025
75de4b0
Update session_routes.py
arslanfbt Aug 8, 2025
6b6903b
Update session_routes.py
arslanfbt Aug 8, 2025
32bc3ff
Update session_routes.py
arslanfbt Aug 8, 2025
9f62e7d
Update requirements.txt
arslanfbt Aug 8, 2025
bca0a68
Update requirements.txt
arslanfbt Aug 8, 2025
f9fd3f6
Update requirements.txt
arslanfbt Aug 8, 2025
10b250e
Update requirements.txt
arslanfbt Aug 8, 2025
f7efece
Update app.py
arslanfbt Aug 8, 2025
3f4255c
Update session_routes.py
arslanfbt Aug 8, 2025
b45c380
Update session_routes.py
arslanfbt Aug 8, 2025
05db289
Update app.py
arslanfbt Aug 8, 2025
f80d340
Update app.py
arslanfbt Aug 8, 2025
a90d98e
Update app.py
arslanfbt Aug 8, 2025
02ebd6f
Update session_routes.py
arslanfbt Aug 8, 2025
f7c926a
Update requirements.txt
arslanfbt Aug 8, 2025
aacbfd7
Update requirements.txt
arslanfbt Aug 8, 2025
918329b
Update requirements.txt
arslanfbt Aug 8, 2025
558f5cd
Update requirements.txt
arslanfbt Aug 8, 2025
51b98af
Update requirements.txt
arslanfbt Aug 8, 2025
11f10cc
Update requirements.txt
arslanfbt Aug 8, 2025
5978947
Update requirements.txt
arslanfbt Aug 8, 2025
02c6c57
Update requirements.txt
arslanfbt Aug 8, 2025
dc52e07
Update route.ts
ArslanS1997 Aug 10, 2025
76eab20
Update redis.ts
ArslanS1997 Aug 10, 2025
b4042fa
Update route.ts
ArslanS1997 Aug 10, 2025
45ee6a3
Update route.ts
ArslanS1997 Aug 10, 2025
181011d
Update route.ts
ArslanS1997 Aug 10, 2025
c323621
Update route.ts
ArslanS1997 Aug 10, 2025
0b8d202
Update route.ts
ArslanS1997 Aug 11, 2025
0a3e047
Update redis.ts
ArslanS1997 Aug 11, 2025
0e2eb44
Update redis.ts
ArslanS1997 Aug 11, 2025
19d5690
Update route.ts
ArslanS1997 Aug 11, 2025
77e6503
made some creds changes
ArslanS1997 Aug 26, 2025
4a246c8
added agent is done stuff
ArslanS1997 Sep 3, 2025
92ea5ec
added agent is done stuff
ArslanS1997 Sep 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-hf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
cd hf-space
git add .
git commit -m "${{ github.event.head_commit.message || 'Update from GitHub Actions' }}"
git push -f origin main
git push -f origin main
21 changes: 20 additions & 1 deletion auto-analyst-backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,23 @@ COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

COPY --chown=user . /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]

# Verify agents_config.json was copied (it should be in the backend directory)
RUN if [ -f "/app/agents_config.json" ]; then \
echo "✅ agents_config.json found in container"; \
ls -la /app/agents_config.json; \
else \
echo "⚠️ agents_config.json not found in container - will use fallback templates"; \
ls -la /app/ | grep -E "agents|config" || echo "No config files found"; \
fi

# Make entrypoint script executable
USER root
RUN chmod +x /app/entrypoint_local.sh
# Make populate script executable
RUN chmod +x /app/scripts/populate_agent_templates.py

USER user

# Use the entrypoint script instead of directly running uvicorn
CMD ["/app/entrypoint_local.sh"]
316 changes: 188 additions & 128 deletions auto-analyst-backend/app.py

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions auto-analyst-backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
aiofiles==24.1.0
beautifulsoup4==4.13.4
dspy==2.6.14
dspy==2.6.27
litellm==1.75.2
email_validator==2.2.0
fastapi==0.111.1
fastapi==0.115.5
fastapi-cli==0.0.7
FastAPI-SQLAlchemy==0.2.1
fastapi-sso==0.10.0
fastapi-sso==0.16.0
groq==0.18.0
gunicorn==22.0.0
gunicorn==23.0.0
huggingface-hub==0.30.2
joblib==1.4.2
litellm==1.63.7
llama-cloud==0.1.19
llama-cloud-services==0.6.21
llama-index==0.12.14
Expand All @@ -29,15 +29,14 @@ matplotlib-inline==0.1.7
numpy==2.2.2
openpyxl==3.1.2
xlrd==2.0.1
openai==1.61.0
openai==1.97.0
pandas==2.2.3
polars==1.30.0
polars==1.31.0
pillow==11.1.0
plotly==5.24.1
psycopg2==2.9.10
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-multipart==0.0.9
requests==2.32.3
scikit-learn==1.6.1
scipy==1.15.1
Expand All @@ -51,13 +50,14 @@ tiktoken==0.8.0
tokenizers==0.21.0
tqdm==4.67.1
urllib3==2.4.0
uvicorn==0.22.0
websockets==14.2
uvicorn==0.29.0
websockets>=13.1.0
wheel==0.45.1
xgboost-cpu==3.0.2
bokeh==3.7.3
pymc==5.23.0
lightgbm==4.6.0
arviz==0.21.0
optuna==4.3.0
shap==0.45.1
shap==0.45.1
litellm[proxy]
8 changes: 4 additions & 4 deletions auto-analyst-backend/scripts/format_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def format_plan_instructions(plan_instructions):
else:
raise TypeError(f"Unsupported plan instructions type: {type(plan_instructions)}")
except Exception as e:
raise ValueError(f"Error processing plan instructions: {str(e)}")
raise ValueError(f"Error processing plan instructions: {str(e)} + {dspy.settings.lm} ")
# logger.log_message(f"Plan instructions: {instructions}", level=logging.INFO)


Expand Down Expand Up @@ -1059,7 +1059,7 @@ def format_response_to_markdown(api_response, agent_name = None, dataframe=None)

except Exception as e:
logger.log_message(f"Error in format_response_to_markdown: {str(e)}", level=logging.ERROR)
return f"{str(e)}"
return f"error formating markdown {str(e)}"

# logger.log_message(f"Generated markdown content for agent '{agent_name}' at {time.strftime('%Y-%m-%d %H:%M:%S')}: {markdown}, length: {len(markdown)}", level=logging.INFO)

Expand All @@ -1070,7 +1070,7 @@ def format_response_to_markdown(api_response, agent_name = None, dataframe=None)
f"API Response: {api_response}",
level=logging.ERROR
)
return " "
return ""

return '\n'.join(markdown)

Expand Down Expand Up @@ -1100,4 +1100,4 @@ def format_response_to_markdown(api_response, agent_name = None, dataframe=None)
}
}

formatted_md = format_response_to_markdown(sample_response)
formatted_md = format_response_to_markdown(sample_response)
Loading
Loading