Skip to content

Add Example 21: Coding Platform with VSCode Integration and Web Scraping - #158

Merged
makr-code merged 5 commits into
mainfrom
copilot/add-themis-db-project
Dec 24, 2025
Merged

makr-code merged 5 commits into
mainfrom
copilot/add-themis-db-project

Conversation

Copilot AI commented Dec 24, 2025 •

Copy link
Copy Markdown
Contributor

Implements a comprehensive coding platform demonstrating ThemisDB's multi-model capabilities for building developer tools with code ingestion from internet sources (GitHub, Stack Overflow, documentation sites) and VSCode integration.

Implementation

Core Platform (5 Python modules, ~2100 LOC)

  • models.py: Data structures (CodeSnippet, Project, Documentation, ScrapingJob)
  • themis_client.py: ThemisDB API client with mock implementation for standalone demos
  • web_scraper.py: Extensible scraper architecture (GitHub, Stack Overflow, docs)
  • code_indexer.py: CodeBERT embeddings for semantic search and duplicate detection
  • main.py: Tkinter desktop app (snippets, search, scraper dashboard, statistics)

VSCode Extension (TypeScript)

  • Command palette integration (search, save, find similar)
  • TreeView provider structure for snippet browsing
  • Context menu actions and configuration options

Documentation (~4600 lines)

  • README.md: Features, architecture, data models, use cases
  • HOW_TO.md: Step-by-step usage guide
  • WEB_SCRAPING.md: Multi-source ingestion (GitHub API, Stack Exchange API, HTML parsing)
  • VSCODE_INTEGRATION.md: Extension development and usage
  • ARCHITECTURE.md: System design, API specs, embedding pipeline
  • QUICKSTART.md: Immediate usage without dependencies

Key Features

Web Scraping & Ingestion

  • GitHub repos/gists via REST API with rate limiting
  • Stack Overflow Q&A with filtering (tags, score, date)
  • Documentation crawling with code block extraction
  • Automatic language detection and duplicate detection

Semantic Search

  • CodeBERT embeddings (512D vectors)
  • Cosine similarity ranking
  • Natural language queries: "async HTTP request python" → relevant snippets

Multi-Model Database Usage

  • Vector Model: Code embeddings with HNSW indexing
  • Document Model: Flexible snippet/project storage
  • Graph Model: Dependency relationships

Example Usage

from code_indexer import CodeIndexer
from themis_client import MockThemisDBClient

client = MockThemisDBClient()
indexer = CodeIndexer(client)

# Semantic search
results = indexer.search_by_description(
    query="asynchronous HTTP requests in Python",
    limit=10
)

# Web scraping
from web_scraper import GitHubScraper
scraper = GitHubScraper(token=os.getenv('GITHUB_TOKEN'))
snippets = scraper.scrape_repository(
    url="https://github.com/fastapi/fastapi",
    max_files=100,
    file_patterns=["*.py"]
)

Mock implementation enables immediate demo without ThemisDB server. Set USE_REAL_THEMISDB=true for production use.

Repository Updates

  • Added Example 21 to examples/README.md (Complex category)
  • Total example count: 20 → 21
Original prompt

Wir brauchen in den examples noch ein weiteres Projekt. Die Themis db als coding-plattform mit vscode integration.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add Themis db as coding platform with VSCode integration Add Example 21: Coding Platform with VSCode Integration and Web Scraping Dec 24, 2025
Copilot AI requested a review from makr-code December 24, 2025 09:59
@makr-code
makr-code marked this pull request as ready for review December 24, 2025 10:02
@makr-code
makr-code merged commit 8ebeb69 into main Dec 24, 2025
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
Copilot AI added a commit that referenced this pull request May 5, 2026
…mpose step

- Add ITensorDecompositionBackend + NullTensorDecompositionBackend to inference_backend.h
- Add TensorCoreRecord + tensor_cores field + hasTensorCores() to extraction_context.h
- Implement builtin.chunk_tt_decompose ingestion step (chunk_tt_decompose_step.cpp)
- Add createChunkTtDecomposeStep() factory to builtin_step_factories.h
- Implement TensorIngestionBridge (include/tensor + src/tensor)
- 20 unit tests in tests/test_tensor_ingestion_bridge.cpp (TIB-01..TIB-20)
- STUB_INVENTORY #158-#159 registered
- Update ingestion ROADMAP.md (Phase 9), ARCHITECTURE.md, FUTURE_ENHANCEMENTS.md
- Update tensor ROADMAP.md + README.md

Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/6f02b7f2-e4d5-437b-9362-5e34d3f8fdb8

Co-authored-by: makr-code <[email protected]>
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.

2 participants