How carol-here/testcase-generation-using-rag-based-ai works
Shiken Jirei is a Streamlit application that turns a user story into structured test cases. Its main workflow collects language and batch settings, retrieves similar examples from LanceDB, prompts an external LLM, parses the response, and displays downloadable results. The repository also documents a separate ingestion pipeline that adds embedded source documents to the vector store. Some wiring is supported only by README descriptions; unsampled implementation details are not inferred.
Main entry points: streamlit_app.py Batch generation · testcases.lance Test case index · datapipeline.py Data ingestion
Components 11
User interface
- Streamlit interface
streamlit/streamlit_app.py - JSON / Excel export
streamlit/streamlit_app.py
Generation workflow
- Batch generation
streamlit/streamlit_app.py - Test case parser
streamlit/streamlit_app.py
RAG data
- Story embedder
streamlit/streamlit_app.py - Context retrieval
streamlit/streamlit_app.py - Test case index
lancedb_data/testcases.lance - Data ingestion
llm/datapipeline.py
External services
- Hugging Face API
- OpenRouter API
Other components
- User
Connections 11
- User → Streamlit interface: enters story
README.md - Streamlit interface → Batch generation: starts generation
streamlit/streamlit_app.py - Batch generation → Context retrieval: requests context
streamlit/streamlit_app.py - Context retrieval → Story embedder: encodes story
README.md - Context retrieval → Test case index: searches examples
streamlit/streamlit_app.py - Batch generation → Hugging Face API: sends prompt
README.md - Batch generation → OpenRouter API: sends prompt
README.md - Batch generation → Test case parser: parses responses
streamlit/streamlit_app.py - Streamlit interface → JSON / Excel export: offers downloads
README.md - Data ingestion → Test case index: stores embeddings
README.md - Batch generation → Streamlit interface: returns test cases
streamlit/streamlit_app.py