Skip to content

OpenGIN-bot project#114

Open
sehansi-9 wants to merge 37 commits into
LDFLK:mainfrom
sehansi-9:opengin-bot
Open

OpenGIN-bot project#114
sehansi-9 wants to merge 37 commits into
LDFLK:mainfrom
sehansi-9:opengin-bot

Conversation

@sehansi-9
Copy link
Copy Markdown
Member

This pr introduces the OpenGIN AI agent chat bot

sehansi-9 and others added 30 commits December 12, 2025 11:45
…tool and updating `get_entity_attributes` parameters and prompt instructions.
…imits, refine prompt instructions for cleaner output
sehansi-9 added 2 commits May 14, 2026 09:48
…44d'

git-subtree-dir: opengin-bot
git-subtree-mainline: 383cf3f
git-subtree-split: 4aa8eff
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the OpenGIN Bot, a full-stack application featuring a Next.js frontend and a FastAPI backend powered by LangGraph for querying temporal graph databases. The implementation includes sophisticated context management strategies like topic shift detection and fact distillation. Feedback highlights several critical issues: a session leakage risk caused by global variables in the Next.js route handler, potential runtime errors in the graph API client when handling 500 responses, and security concerns regarding insecure CORS policies and sensitive information leakage in error responses. Additionally, corrections are needed for hardcoded environment URLs, invalid dependency versions in package.json, and incorrect LLM model identifiers.

Comment thread opengin-bot/app/api/chat/route.ts Outdated
Comment thread opengin-bot/backend/app/services/graph_api.py Outdated
Comment thread opengin-bot/package.json
},
"dependencies": {
"groq-sdk": "^0.37.0",
"next": "16.0.10",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Next.js version 16.0.10 is invalid as the current major version is 15. This typo will prevent successful dependency installation.

Suggested change
"next": "16.0.10",
"next": "^15.1.0",

Comment thread opengin-bot/app/page.tsx Outdated
Comment thread opengin-bot/backend/app/main.py Outdated
Comment thread opengin-bot/lib/config.ts Outdated
Comment thread opengin-bot/backend/app/main.py Outdated
from langchain_core.messages import HumanMessage
from app.graph.router import app_graph

app = FastAPI(title="OpenGIN Bot Backend")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The GraphAPIClient should be properly closed to prevent connection leaks. While a FastAPI lifespan handler is one way to manage this, in low-throughput contexts it is also acceptable to instantiate the client within a context manager for each request. This ensures safe, automatic cleanup with minimal overhead.

References
  1. In low-throughput contexts where HTTP requests are made sequentially at a human pace, it is acceptable to instantiate a new httpx.Client for each request using a context manager. The negligible performance overhead is outweighed by the benefit of safe, automatic cleanup.

sehansi-9 and others added 5 commits May 14, 2026 10:29
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant