An enterprise-grade developer issue intelligence platform powered by Weaviate, semantic vector search, hybrid retrieval (BM25 + Dense Vectors), and Retrieval-Augmented Generation (RAG).
DevFind is a developer intelligence platform engineered to eliminate duplicate bug triage, accelerate root-cause identification, and unlock organizational debugging knowledge. By centering its persistence architecture on Weaviate, DevFind provides real-time vector search across thousands of software incident reports, identifies semantic duplicates regardless of phrasing divergence, synchronizes external repositories via GitHub API, and provides a citation-grounded RAG debugging assistant.
Modern software engineering teams face severe friction in defect tracking:
- Duplicate Triage Burden: Up to 30% of incoming software bug reports are duplicates of previously reported or resolved issues.
- Vocabulary Mismatch: Different engineers and users describe the exact same underlying failure with completely disparate technical terms. For instance, "NullPointerException when refreshing JWT" and "User logged out unexpectedly on page reload" refer to the exact same defect, yet share zero non-stopword tokens.
- Lost Remediation Knowledge: When incidents are marked as resolved, the diagnostic steps, workarounds, and root causes are buried in closed tickets, forcing subsequent developers to re-investigate the same problem from scratch.
- Keyword Search Failure: Traditional inverted index search (BM25, Lucene, SQL
LIKE) fails when queries lack exact keyword overlap with historical reports.
DevFind was designed to bridge the gap between traditional relational issue trackers and modern vector-native databases. By demonstrating how Weaviate can serve as a primary operational datastore—handling vectorization, HNSW indexing, sparse-dense hybrid ranking, metadata filtering, and full CRUD—DevFind showcases production-grade information retrieval applied to daily developer workflows.
-
Multi-Modal Search Engine:
-
Dense Vector Search (
near_text): Deep conceptual similarity usingtext2vec_weaviate. -
Hybrid Search: Combines BM25 keyword matching with dense vectors using relative score fusion and a configurable
$\alpha$ balance parameter ($0.0 \le \alpha \le 1.0$ ). -
Keyword Search (BM25): Pure lexical baseline matching against
titleanddescription.
-
Dense Vector Search (
-
Intelligent Duplicate Discovery: Real-time duplicate candidate flagging with adjustable cosine distance thresholds (
$\le 0.25$ ), side-by-side issue inspection, and human-in-the-loop triage confirmation. - Comprehensive Issue Management (CRUD): Complete lifecycle operations (Browse, Create, Edit, Delete, Filter) directly persisting to Weaviate collections.
-
Grounded RAG Knowledge Assistant: Retrieval-Augmented Generation pipeline combining historical issues and runbook documentation with local (Ollama
llama3.2) or cloud (OpenAIgpt-4o-mini) LLMs, complete with source citations and strict anti-hallucination guardrails. -
Idempotent GitHub Integration: Bi-directional sync importing issues from GitHub repositories with deterministic
uuid5generation to prevent duplicate insertions across recurring imports. - Information Retrieval Evaluation Suite: Standalone benchmarking framework evaluating Precision@K, Recall@K, Mean Reciprocal Rank (MRR), and latency across search modes.
-
Professional Developer UI: Streamlit interface styled in a dark graphite-and-teal theme (
#0B1118/#14B8A6) engineered for developer workflows.
flowchart TD
subgraph UI_Layer["User Interface Layer (Streamlit)"]
UI_DASH["Dashboard View"]
UI_CRUD["Issue Management View"]
UI_DUP["Duplicate Finder View"]
UI_GH["GitHub Import View"]
UI_RAG["Knowledge Assistant View"]
end
subgraph Service_Layer["Application Services (src/)"]
SRCH["Search Engine\n(db/search.py)"]
CRUD_SVC["Issue Operations\n(db/issues.py)"]
KNOW_SVC["Knowledge Operations\n(db/knowledge.py)"]
GH_SVC["GitHub Sync Service\n(github_integration.py)"]
RAG_SVC["RAG Pipeline\n(rag.py)"]
EVAL_SVC["Evaluation Framework\n(evaluation.py)"]
end
subgraph Database_Layer["Weaviate Vector Database (Cloud / Local)"]
subgraph ColIssue["Collection: DevFindIssue"]
VEC1["Dense Vectors (text2vec_weaviate)"]
HNSW1["HNSW Vector Index"]
BM25_1["Inverted Index (BM25)"]
PROPS1["17 Typed Metadata Fields"]
end
subgraph ColKnow["Collection: DevFindKnowledge"]
VEC2["Dense Vectors (text2vec_weaviate)"]
HNSW2["HNSW Vector Index"]
PROPS2["8 Knowledge Chunk Fields"]
end
end
subgraph External_APIs["External Services"]
GH_API["GitHub REST API"]
OLLAMA["Local LLM (Ollama)"]
OPENAI["OpenAI API"]
end
UI_DASH --> CRUD_SVC
UI_CRUD --> CRUD_SVC
UI_DUP --> SRCH
UI_GH --> GH_SVC
UI_RAG --> RAG_SVC
SRCH --> ColIssue
CRUD_SVC --> ColIssue
KNOW_SVC --> ColKnow
GH_SVC --> GH_API
GH_SVC --> CRUD_SVC
RAG_SVC --> SRCH
RAG_SVC --> KNOW_SVC
RAG_SVC --> OLLAMA
RAG_SVC --> OPENAI
EVAL_SVC --> SRCH
| Component | Technology | Rationale |
|---|---|---|
| Vector Database | Weaviate v4 | Native co-location of dense vectors and inverted BM25 indices; automatic embedding vectorization; high-performance HNSW indexing; robust Python client v4. |
| Web Framework | Streamlit | Rapid prototyping and reactive UI execution without the overhead of maintaining separate frontend build chains. |
| Embedding Vectorizer | text2vec_weaviate |
In-database embedding generation eliminates client-side model inference bottlenecks and ensures synchronized schema vectorization. |
| Optional LLM | Ollama (llama3.2) / OpenAI |
Offline, private, local model execution via Ollama with optional cloud fallback. |
| Evaluation Suite | Python / pytest / pandas | Standalone IR metrics computation (Precision, Recall, MRR) without heavy external dependencies. |
| External Integration | GitHub REST API v3 | Industry standard for developer issue tracking with fine-grained security tokens. |
DevFind/
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.yml # GitHub bug report issue form
│ │ └── feature_request.yml # GitHub feature request issue form
│ ├── pull_request_template.md # Pull request template
│ └── workflows/
│ └── ci.yml # GitHub Actions CI matrix workflow
├── .streamlit/
│ └── config.toml # Dark theme styling configuration
├── data/
│ ├── eval_dataset.json # 30 labeled IR evaluation queries
│ ├── knowledge_docs.json # 25 software engineering knowledge chunks
│ └── sample_issues.json # 82 synthetic software defect reports
├── docs/
│ ├── assets/ # Application screenshots & diagrams
│ ├── architecture.md # Detailed system architecture & schemas
│ ├── installation.md # Comprehensive setup instructions
│ ├── usage.md # Module-by-module workflow user guide
│ ├── gen_docx.py # Case study report generator
│ └── gen_pptx.py # Case study presentation generator
├── results/
│ ├── eval_results.csv # Detailed per-query evaluation output
│ ├── eval_results.json # Per-query evaluation metrics
│ └── eval_summary.json # Aggregated Precision, Recall, and MRR
├── src/
│ ├── db/
│ │ ├── __init__.py
│ │ ├── client.py # Weaviate client factory & health checks
│ │ ├── issues.py # Issue CRUD operations & batch upsert
│ │ ├── knowledge.py # Knowledge chunk CRUD operations
│ │ ├── schema.py # Collection definitions & startup guards
│ │ └── search.py # Semantic, hybrid, and BM25 search engines
│ ├── __init__.py
│ ├── evaluation.py # Precision@k, Recall@k, and MRR calculators
│ ├── github_integration.py # GitHub REST sync & UUID normalization
│ ├── rag.py # Grounded RAG orchestrator with citations
│ └── utils.py # Input validation, hashing & date helpers
├── tests/
│ ├── __init__.py
│ ├── test_db_integration.py # Weaviate CRUD & schema integration tests
│ ├── test_github.py # GitHub API sync & pagination tests
│ ├── test_rag.py # RAG context builder & LLM caller tests
│ ├── test_search.py # Search parameter & filter tests
│ └── test_utils.py # Data normalization & UUID5 tests
├── .env.example # Template environment variables (no secrets)
├── .gitignore # Git exclusion rules
├── CHANGELOG.md # Project release changelog
├── CODE_OF_CONDUCT.md # Community standards
├── CONTRIBUTING.md # Contribution guidelines
├── LICENSE # MIT License
├── README.md # Master project documentation
├── app.py # Streamlit application entry point
├── devfind_demo.py # Self-contained classroom demo script
├── pytest.ini # Pytest configuration and markers
├── requirements.txt # Production dependencies
├── reset_db.py # Safe database reset utility
└── run_eval.py # Standalone evaluation runner
- Python 3.10+
- Weaviate instance (Free Weaviate Cloud or local Docker)
# 1. Clone the repository
git clone https://github.com/aadiur/DevFind.git
cd DevFind
# 2. Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Configure environment
cp .env.example .env
# Open .env and add your WEAVIATE_URL and WEAVIATE_API_KEYFor complete setup instructions, see docs/installation.md.
Launch the Streamlit web dashboard:
streamlit run app.pyOpen http://localhost:8501 in your browser.
- Click "Load Synthetic Issues" on the Dashboard to seed 82 realistic software bug reports.
- Navigate to Duplicate Finder to execute semantic queries.
- Navigate to Issue Management to inspect and filter indexed records.
DevFind automatically initializes two collections via ensure_startup_collections() in src/db/schema.py:
DevFindIssue(Primary Defect Collection):- 17 typed properties including
title,description,component,severity,status,resolution,review_status, andtags. - Vectorizer:
text2vec_weaviateconfigured across descriptive text fields. - Index: Inverted index for BM25 term lookups and HNSW graph for vector similarity.
- 17 typed properties including
DevFindKnowledge(RAG Context Collection):- 8 typed properties storing runbooks, troubleshooting steps, and architectural documentation chunks.
- Vectorizer:
text2vec_weaviate.
Calculates the Cosine Distance between the query embedding and stored issue vectors:
Issues with
Hybrid search balances semantic understanding with exact token matching (e.g., error codes like AUTH-004 or ConnectionResetError):
-
$\alpha = 1.0$ : Pure vector search. -
$\alpha = 0.0$ : Pure BM25 keyword search. -
$\alpha = 0.70$ (Default): 70% semantic emphasis, 30% lexical keyword emphasis.
The Knowledge Assistant (src/rag.py) allows developers to query debugging knowledge with strict factual grounding:
- Parallel Vector Retrieval: Queries
DevFindIssuefor historical resolutions andDevFindKnowledgefor architectural guides. - Context Formatting: Assembles structured excerpts with unique source identifiers.
- Constrained Prompting: Instructs the LLM to rely strictly on provided evidence and state uncertainties explicitly.
- Source Attribution: Parses and verifies source citations before rendering results to the user.
DevFind synchronizes live GitHub issues via src/github_integration.py:
- Deterministic Keying: Generates stable UUIDv5 identifiers from repository name and issue number (
uuid5(NAMESPACE_URL, "github://owner/repo/issues/123")), guaranteeing idempotency across recurring syncs. - Dry-Run Mode: Simulates synchronization and reports additions/modifications without persisting changes.
- Label & State Mapping: Converts GitHub states (
open,closed) and labels (critical,bug,backend) into DevFind's typed schema.
DevFind includes a standardized evaluation suite (src/evaluation.py):
-
Precision@K (
$P@K$ ): Percentage of top-$K$ retrieved issues that are genuinely relevant. -
Recall@K (
$R@K$ ): Percentage of all relevant issues successfully captured within the top-$K$. -
Mean Reciprocal Rank (MRR): Evaluates how quickly the first relevant issue is surfaced:
$$\text{MRR} = \frac{1}{|Q|} \sum_{i=1}^{|Q|} \frac{1}{\text{rank}_i}$$
Run the benchmark suite:
python run_eval.pyOutput results are exported to results/eval_results.csv and results/eval_results.json.
The test suite contains 158 tests covering CRUD operations, search mechanics, GitHub synchronization, RAG logic, and data normalization:
# Run all unit and mocked integration tests (no live credentials required)
python -m pytest tests/ -v
# Run with coverage report
python -m pytest --cov=src tests/
# Run live Weaviate cloud tests (requires WEAVIATE_URL and WEAVIATE_API_KEY in .env)
python -m pytest tests/test_db_integration.py -v -k "Live"CI automatically executes all non-live tests across Python 3.10, 3.11, and 3.12 on both Ubuntu and Windows runners.
- Synthetic Evaluation Set: The bundled evaluation dataset contains 30 labeled queries and 82 issues; while effective for comparative analysis between search algorithms, production calibration requires larger organization-specific corpora.
- Vectorizer Dependency: Requires a Weaviate cluster with the
text2vec_weaviateor compatible vectorizer module enabled. - Authentication: The Streamlit interface is intended for internal developer workflows and does not implement a multi-tenant user authentication layer.
- Support for local ONNX/HuggingFace client-side vectorizers as alternatives to cloud vectorizers.
- Automated Slack / Microsoft Teams webhook integration for real-time duplicate alerts.
- Multi-repository synchronization daemon with incremental polling.
- Cross-encoder re-ranking step (e.g.,
bge-reranker-large) on top of hybrid retrieval results.
We welcome community contributions! Please review our Contributing Guidelines and Code of Conduct before submitting a pull request.
This project is licensed under the MIT License. See the LICENSE file for complete details.
- Author: aadiur
- Contact:
aadiur710@gmail.com - Acknowledgments: Developed as a practical demonstration of vector-native software engineering and information retrieval powered by Weaviate.