{"id":28550512,"url":"https://github.com/elastacloud/dotprompt.sql","last_synced_at":"2025-09-10T04:41:18.567Z","repository":{"id":274298283,"uuid":"922491938","full_name":"elastacloud/DotPrompt.Sql","owner":"elastacloud","description":"A library which allows you to store prompt files from the DotPrompt format in a SQL database ","archived":false,"fork":false,"pushed_at":"2025-02-02T19:27:17.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-10T03:09:25.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elastacloud.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-26T11:13:00.000Z","updated_at":"2025-02-02T19:27:20.000Z","dependencies_parsed_at":"2025-01-26T12:33:46.515Z","dependency_job_id":null,"html_url":"https://github.com/elastacloud/DotPrompt.Sql","commit_stats":null,"previous_names":["elastacloud/dotprompt.sql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elastacloud/DotPrompt.Sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastacloud%2FDotPrompt.Sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastacloud%2FDotPrompt.Sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastacloud%2FDotPrompt.Sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastacloud%2FDotPrompt.Sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elastacloud","download_url":"https://codeload.github.com/elastacloud/DotPrompt.Sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastacloud%2FDotPrompt.Sql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263399436,"owners_count":23460703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-10T03:09:24.930Z","updated_at":"2025-07-03T20:32:04.292Z","avatar_url":"https://github.com/elastacloud.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotPrompt.Sql \n\nThis is a SQL store configured to be used with the the DotPrompt library. It currently has support for everything that you would find in DotPrompt prompt files bar a couple of things that are still in development. You can give it a prompt file and it will add the data from the prompt file to a set of related SQL tables.\n\nIn order to use this a CLI is provided which will allow you to add a prompt file to the database as long it adheres to the rules defined in DotPrompt. \n\nYou can use the CLI with the following syntax:\n\n```\nDotPrompt.Sql.Cli ./prompts/basic.prompt ./sample.yaml \n```\n\nThe YAML file should contain the connection details to SQL Server / Azure SQL DB or Microsoft Fabric SQL DB with the following format.\n\n```yaml\nserver: \"myserver.database.windows.net\"\ndatabase: \"mydatabase\"\ntablename: \"mytable\"\nusername: \"myuser\"\npassword: \"mypassword\"\nintegrated_authentication: false\naad_authentication: true\n```\n\n**DotPrompt.SQL** currently supports the following features from a prompt file.\n\n- System prompt\n- User prompt\n- Model\n- Name\n- Temperature\n- MaxTokens\n- Parameters\n- Default\n\nIt doesn't currently support the **Few Shot Prompt** section but will shortly. It has been tested only for only username and password database access but will be tested with the others so whilst config is supported access may well break. Let me know if this is the case.\n\nIt will automatically create the tables with a unique constraint on PromptName which name which names that the names in the prompt files should be unique for now although I'll be looking at more composite uniqueness in the future with a **category table** and **categoryid** which will test for unique names within the category itself.\n\n![Open Source Diagrams.png](..%2FOpen%20Source%20Diagrams.png)\n\nThe above is right as per v0.1 and I'll update until I get to a stable build which covers all of the features from DotPrompt.\n\nYou can review DotPrompt [here](https://github.com/elastacloud/dotprompt).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felastacloud%2Fdotprompt.sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felastacloud%2Fdotprompt.sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felastacloud%2Fdotprompt.sql/lists"}