{"id":19855654,"url":"https://github.com/maylad31/dspy-phi3","last_synced_at":"2025-09-03T20:50:50.347Z","repository":{"id":244643145,"uuid":"815833312","full_name":"maylad31/dspy-phi3","owner":"maylad31","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-17T11:15:24.000Z","size":52,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T15:57:13.733Z","etag":null,"topics":["dspy","dspy-ai","genai","phi3","prompt-engineering"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maylad31.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,"zenodo":null}},"created_at":"2024-06-16T09:58:49.000Z","updated_at":"2025-04-17T09:13:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"7cd44f38-15e7-4bab-bdf6-4538a2768055","html_url":"https://github.com/maylad31/dspy-phi3","commit_stats":null,"previous_names":["maylad31/dspy-phi3"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maylad31/dspy-phi3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maylad31%2Fdspy-phi3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maylad31%2Fdspy-phi3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maylad31%2Fdspy-phi3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maylad31%2Fdspy-phi3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maylad31","download_url":"https://codeload.github.com/maylad31/dspy-phi3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maylad31%2Fdspy-phi3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273509145,"owners_count":25118447,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dspy","dspy-ai","genai","phi3","prompt-engineering"],"created_at":"2024-11-12T14:13:23.341Z","updated_at":"2025-09-03T20:50:50.317Z","avatar_url":"https://github.com/maylad31.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dspy-phi3\n\n\nI recently tested DSPy with phi3, aiming to use COPRO to refine the prompt instructions and achieve the best score. I intentionally did not use assertions.\n\nHere’s what I liked:\n\nI used the CoLA dataset, which includes sentences from 23 linguistic publications annotated for grammaticality, I wanted outputs with \"just the label\" (no explanations or extra words). DSPy generated instructions that performed well, ensuring grammatical correctness:\n\n**Original Instruction: Check if the sentence is correct(1) or not(0)**\n\n**Optimized Instruction: Determine if the given sentence adheres to standard English grammar rules by outputting a '1' for grammatically correct and '0' for incorrect.**\n\nBoth the BootstrapFewShot and Signature Optimizer are great starting points.\n\nWhat could be improved:\n\nDSPy states, \"Once the training is done, you’ll have better instructions and prefixes to edit in the signature manually.\" However, I believe that post-compilation, the tool should be ready to predict. The instruction optimizer needs more flexibility for easier tweaking, such as better compatibility with other languages. Alternatively, creating a program for the signature optimizer to tweak prompts as needed would be beneficial.\n\nIt is a cool concept but I guess as a framework it still needs improvement.\nConnect with me on linkedin if you have an intersting project/common interests. https://www.linkedin.com/in/mayankladdha31/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaylad31%2Fdspy-phi3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaylad31%2Fdspy-phi3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaylad31%2Fdspy-phi3/lists"}