RepositoryPython
katsumiok

katsumiok/pyaskit

AskIt: Unified programming interface for programming with LLMs (GPT-3.5, GPT-4, Gemini, Claude, Cohere, Llama 2)

79sao
4fork
0issue
0lượt xem

🚀 AskIt: Lập trình với LLM chỉ bằng một dòng lệnh

AskIt biến việc dùng LLM thành lập trình hóa: không cần prompt phức tạp, không cần parse kết quả.

AskIt (hay pyaskit) là một thư viện Python hoạt động như một ngôn ngữ lập trình miền nhỏ (DSL), giúp bạn dùng các mô hình LLM lớn như GPT-4, Gemini, Claude, Cohere, Llama 2 một cách đồng nhất và đơn giản hóa. Không cần viết prompt dài hay tự tay xử lý kết quả trả về — chỉ cần khai báo kiểu dữ liệu mong muốn, AskIt sẽ tự động sinh ra kết quả đúng định dạng.

✨ Điểm nổi bật

  • Điều khiển kiểu đầu ra thông minh: Tự động chuyển đổi phản hồi LLM thành kiểu dữ liệu bạn chỉ định (int, str, TypedDict, List...).
  • Không cần viết prompt phức tạp: Chỉ cần mô tả yêu cầu bằng ngôn ngữ tự nhiên, AskIt xử lý phần còn lại.
  • Định nghĩa hàm bằng mẫu (template): Dùng docstring với biến {{biến}} để tạo hàm dễ dàng.
  • Sinh mã tự động: Với codable=True, thân hàm sẽ được LLM sinh ra hoàn toàn.
  • Lập trình bằng ví dụ (PBE): Định nghĩa hành vi hàm qua các ví dụ thay vì code.
  • Hỗ trợ đa nền tảng: GPT, Gemini, Claude, Cohere, Llama 2 — chỉ cần cài đặt và thiết lập API key.
  • Hỗ trợ cả TypeScript: Có phiên bản ts-askit tương đương.

💡 Vì sao đáng chú ý

AskIt khác biệt bằng cách biến LLM thành một công cụ lập trình thực sự — không chỉ là chatbot. Thay vì phải viết prompt dài và tự parse JSON, bạn chỉ cần khai báo kiểu dữ liệu và mô tả công việc. Đây là cách tiếp cận mới trong lĩnh vực "lập trình bằng ngôn ngữ tự nhiên", giúp giảm đáng kể thời gian triển khai và tăng độ tin cậy của kết quả.

Phù hợp với các bài toán như dịch thuật, sinh code, trích xuất thông tin cấu trúc, hoặc xây dựng prototype nhanh từ ý tưởng.


#LLM #CodeGeneration #OpenSource #Python #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
xtekky/gpt4free

The official gpt4free repository | various collection of powerful language models | opus 4.6 gpt 5.3 kimi 2.5 deepseek v3.2 gemini 3

66.9k
Oct 23, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

159.6k
Oct 26, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

187.7k
Oct 24, 2026
RepositoryHTML
f/prompts.chat

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

174.6k
Oct 26, 2026
RepositoryPython
AntonOsika/gpt-engineer

CLI platform to experiment with codegen. Precursor to: https://lovable.dev

55.0k
May 14, 2025
RepositoryPython
Aider-AI/aider

aider is AI pair programming in your terminal

49.8k
May 22, 2026
RepositoryPython
mouredev/Hello-Python

Curso para aprender el lenguaje de programación Python desde cero y para principiantes. 100 clases, 44 horas en vídeo, código, proyectos y grupo de chat. Fundamentos, frontend, backend, testing, IA...

37.9k
Aug 11, 2025
RepositoryPython
microsoft/graphrag

A modular graph-based Retrieval-Augmented Generation (RAG) system

36.5k
Oct 26, 2026
RepositoryPython
langroid/langroid

Harness LLMs with Multi-Agent Programming

4.1k
Oct 20, 2026