Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🔍 Code entity retrieval "GPT action" for ChatGPT!

NotificationsYou must be signed in to change notification settings

loladotdev/smolex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motivation

The hardest part of using ChatGPT is to provide it with the right context. This is especially true when talking aboutcode. This is where Smolex comes in. Smolex is aGPT that can be used toretrieve code entities from a codebase.

Prime Use Cases

  • Writing test based on existing tests.
  • Updating suggested code based on existing classes / methods.
  • "Look at this code, is there a way to improve it?"

Showcase

Demo

How it works

We parse the codebase and create an AST for each file that we store in a SQLite database for fast lookups.At the moment Smolex is Python only, but it should be possible to extend it to other languages. ;)

Setup

Install dependencies

pip install -r requirements.txt

Run Fast API server

app/main.py --index-root /Users/alice/code/smolex/

Setup

  • Set up a new GPT.
  • Add theopenapi.yml as an action.
  • Run server and profit.

About

🔍 Code entity retrieval "GPT action" for ChatGPT!

Topics

Resources

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp