Implement SBERT Vector Embeddings and Stateful Context for Guard Agent#8
Open
ttudii wants to merge 7 commits into
Open
Implement SBERT Vector Embeddings and Stateful Context for Guard Agent#8ttudii wants to merge 7 commits into
ttudii wants to merge 7 commits into
Conversation
…d (semantic authentication already implemented); guard_openai.yaml file used as action in guard; README.md file contains a short documentation about starting server and initiating tunnel connection; .gitignore prevents commiting large files from virtual environment or __pycache__; requirments.txt lists imports necessary for python server, useful when creating the virtual environment.
…ide the database to store a partial response
…fication question.
… to achieve using current model
…el. Secured auth tokens by moving them to .env and updating .gitignore
…tend description and SQLite schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR delivers the final, feature-complete implementation of the G·U·A·R·D Authentication System.
It finalizes the transition from syntactic matching to a Semantic Engine using
sentence-transformers(SBERT). The system is now fully Dockerized, operationally Stateful (handling ambiguous inputs via short-term memory), and documented for deployment.Key Changes Implemented
1. Semantic Engine & Zero-Knowledge Storage
all-MiniLM-L6-v2) for 384-dimensional vector embeddings.2. Database Architecture (SQLite)
Moved from flat files to a structured SQLite database (
guard_secure.db) with three tables:users: Credentials and lock status.phrases: Serialized JSON vector embeddings.auth_context: Short-term memory table to handle multi-turn ambiguous verifications.3. DevOps & Deployment
.envfile injection.4. Documentation
README.mdto reflect the new architecture./enroll,/verify,/user/{id},/update).Checklist