A compact, source-aware question-answering Agent built for local development and prompt tuning. It accepts user queries, gathers candidate sources, and returns concise answers with cited references
Follow these steps to run the project locally on Windows.
-
Clone the repository
git clone https://github.com/yourusername/LangChain_project.git cd LangChain_project -
Create and activate a virtual environment
PowerShell:
python -m venv .venv .\.venv\Scripts\Activate.ps1CMD:
python -m venv .venv .\.venv\Scripts\activate.bat
-
Install dependencies
uv sync
-
Configure environment variables
Copy the example environment file and populate it with your credentials:
cp .env.example .env # then edit .env and add your keysIf you're on Windows and don't have
cp, use PowerShell:Copy-Item .env.example .env # then open .env in an editor and add your keys
-
Run the agent
Start the project using
uvwith the script path:uv run main.py
If you want to launch only the CLI mode, use:
uv run main.py -- cli
- Language: Python 3.14+
- UI: Gradio-based interface
- LLM / agent framework: LangChain with Gemini support via
langchain-google-genai - Entry points:
main.py, prompt templates inprompts.py
main.py— local runner / CLI entrypointagent.py— agent orchestration logicprompts.py— prompt templates and instructionsapp.py— user interface managementcli.py— cli chat management
Query: What does the acronym "URL" stand for in web addresses?
Response: Here are the sources I found. Which ones should I include in the summary?
- What does the acronym "URL" stand for in the context of the internet? — https://testbook.com/question-answer/what-does-the-acronym-url-stand-for-in--69709a7c535cd0f2e9ca3145
- What does 'URL' stand for? - Uniform Resource Locator - Quora — https://www.quora.com/What-does-URL-stand-for-12
- What is the full form of URL? - Facebook — https://www.facebook.com/ImproveEnglishSkills121/posts/what-is-the-full-form-of-url/1172811844849512
- URL - Wikipedia — https://en.wikipedia.org/wiki/URL
- Tech Tips: What is a URL? - Oak Park Public Library — https://www.oppl.org/news-events/digital-learning/tech-tips-what-is-a-url
Your selection: 1, 4
The acronym "URL" stands for Uniform Resource Locator. This is a reference or address used to access a resource on the World Wide Web, essentially acting as a web address.
Sources:
Query: Which ocean is the largest and deepest on Earth?
Response: Here are the sources I found. Which ones should I include in the summary?
- Top 10 Deepest Oceans and Seas in the World — https://www.infoplease.com/top-10s/top-10-deepest-oceans-and-seas
- How big is the Pacific Ocean? - NOAA Ocean Exploration — https://oceanexplorer.noaa.gov/ocean-fact/pacific-size
- What is the largest ocean basin on Earth? — https://oceanservice.noaa.gov/facts/biggestocean.html
- Answer without Google What is the deepest ocean on Earth?? — https://www.facebook.com/groups/1572893699951268/posts/2109314366309196
- Mariana Trench - Wikipedia — https://en.wikipedia.org/wiki/Mariana_Trench
Your selection: https://www.infoplease.com/top-10s/top-10-deepest-oceans-and-seas
The Pacific Ocean is the largest and deepest ocean on Earth. It covers more than 155 million square kilometers (60 million square miles) and contains the Mariana Trench, which includes the Challenger Deep, the lowest known point on Earth's seabed at about 36,200 feet (11,034 meters) below sea level.
Sources:
Query: Is water wet?
Response Here are the sources I found. Which ones should I include in the summary?
- Is Water Wet? | Fluoride Filter Water Bottles & Pitchers to Remove Contaminants – Clearly Filtered — https://clearlyfiltered.com/articles/is-water-wet
- Is water considered wet? - Facebook — https://www.facebook.com/groups/44556868120/posts/10162174144023121
- Why is water wet? | Notes and Queries | guardian.co.uk — https://www.theguardian.com/notesandqueries/query/0,5753,-1725,00.html
- "Is water wet?" ANSWERED - YouTube — https://www.youtube.com/shorts/cs0_0V2LSNQ
- Is Water Wet? : r/chemistry - Reddit — https://www.reddit.com/r/chemistry/comments/82c954/is_water_wet
Query: What is 2+2?
Response:
- Basic Arithmetic #BasicArithmetic /2x2 2+2 2+2 - Facebook — https://www.facebook.com/groups/1003467440405674/posts/1957879411631134
- What is the meaning of '2+2' from a mathematical point of view? — https://www.quora.com/What-is-the-meaning-of-2-2-from-a-mathematical-point-of-view
- 2 + 2 divided 2 =? MANY will get this BASIC Math Problem WRONG! — https://www.youtube.com/watch?v=TulGFOA-Bn8
- Basic Math Skills, Grade 2: Evan Moor - Amazon.com — https://www.amazon.com/Basic-Math-Skills-Grade-2/dp/1557998973
- Basic Math Review — https://southbend.iu.edu/students/academic-success-programs/academic-centers-for-excellence/docs/Basic%20Math%20Review%20Card.pdf
Your selection: All sources
From a mathematical perspective, "2+2" means to add the real number two to itself. Basic arithmetic involves operations such as addition.
Sources:
- https://www.facebook.com/groups/1003467440405674/posts/1957879411631134
- https://www.quora.com/What-is-the-meaning-of-2-2-from-a-mathematical-point-of-view
- https://www.youtube.com/watch?v=TulGFOA-Bn8
- https://www.amazon.com/Basic-Math-Skills-Grade-2/dp/1557998973
- https://southbend.iu.edu/students/academic-success-programs/academic-centers-for-excellence/docs/Basic%20Math%20Review%20Card.pdf
Query: Explain me the CI/CD pipeline
Response: Here are the sources I found. Which ones should I include in the summary? 1. What is a CI/CD pipeline? — https://about.gitlab.com/topics/ci-cd/cicd-pipeline 2. Part 14: CI/CD Pipelines Explained | by Adekola Olawale | Medium — https://medium.com/@Adekola_Olawale/ part-14-ci-cd-pipelines-explained-1e355058fad4 3. What Are CI/CD And The CI/CD Pipeline? | IBM — https://www.ibm.com/think/topics/ci-cd-pipeline 4. CI/CD Pipeline Explained: Stages, Tools & Examples (2026) — https://www.netcomlearning.com/blog/ci-cd-pipeline 5. CI/CD Pipeline Explained in 5 Minutes — https://www.youtube.com/watch?v=N_Wuej70uA4
Your selection: all of them
A CI/CD pipeline is an automated workflow that streamlines the software delivery process, moving code from development to production through a series of stages. By replacing manual processes with automation, it helps development teams release software updates more frequently, reliably, and with fewer errors.
The acronym stands for:
- Continuous Integration (CI): Developers frequently merge their code changes into a central repository, where automated builds and tests are triggered. This allows for early detection of integration issues.
- Continuous Delivery (CD): Once the code passes the CI stage, it is automatically prepared and released to a testing or staging environment, ensuring it is always in a deployable state.
- Continuous Deployment (CD): An extension of continuous delivery where every change that passes the automated tests is automatically deployed directly to the production environment, without manual intervention.
- Source: The stage where code changes are committed to a version control system (like Git), triggering the pipeline.
- Build: The code is compiled and packaged into a runnable product.
- Test: Automated tests run against the build to validate functionality, performance, and security.
- Deploy: Once validated, the application is moved to the target environment (staging or production).
By standardizing these steps, CI/CD pipelines provide consistent feedback to developers and ensure that software releases are predictable and scalable.