GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - brettleehari/intelliyang: AI-powered CLI chatbot for understanding and querying OpenROADM YANG models.

This repository was archived by the owner on Nov 23, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
openroadm-yang
openroadm-yang
 
 
tests
tests
 
 
yang_chatbot
yang_chatbot
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
config.yaml
config.yaml
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

OpenROADM YANG CLI Chatbot

AI-powered command-line chatbot for understanding and querying OpenROADM YANG models.

Quick Start

# Install dependencies
pip install -r requirements.txt

# Run the chatbot
python main.py --yang-dir ./openroadm-yang

# With custom config
python main.py --config config.yaml --log-level DEBUG

Architecture

yang_chatbot/
├── models/           # YANG model processing with semantic chunking
├── llm/              # LLM integration with RAG pipeline
├── cli/              # Command-line interface
├── storage/          # Vector DB and keyword search
├── validation/       # Multi-stage validation pipeline
└── utils/            # Utilities and helpers

Core Components

  • YANG Processor: Parses .yang files and extracts semantic chunks (containers, groupings, identities, etc.)
  • RAG System: Hybrid retrieval (vector + BM25 keyword search) for accurate context retrieval
  • Validation Pipeline: Multi-stage validation (syntax, semantics, optical constraints, confidence threshold)
  • CLI Interface: Rich-formatted interactive chat with session management

Configuration

Set OPENAI_API_KEY environment variable for LLM-powered responses. Without it, the chatbot operates in context-retrieval mode using the indexed YANG models.

Edit config.yaml to customize behavior:

  • yang_models.directory: Path to YANG model files
  • llm.provider: LLM provider (default: openai)
  • rag.top_k: Number of chunks to retrieve per query
  • validation.confidence_threshold: Escalation threshold (default: 0.90)

CLI Commands

Command Description
help Show available commands
stats Display YANG model statistics
modules List loaded YANG modules
validate <text> Validate YANG content
history Show conversation history
clear Clear conversation history
quit Exit the chatbot

Running Tests

pip install pytest
pytest tests/ -v

About

AI-powered CLI chatbot for understanding and querying OpenROADM YANG models.

Topics

chatbotllmopenroadmoptical-networkingyang

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.