[Return]

Report a post

Preview
459528
I added "prompt_generator" folder in the Mega.
Now anyone good about coding can have a prompt generator, which is very useful. Paste this post and ask your AI how to run it.

Here is what my generate_prompt.py doing:
0. Run llama-server (or LM Studio local server) with Qwen3.6-abliterated (any uncensored LLM is ok).

1. User enters an instruction or a crude prompt. It can be crude as follows: "Japanese policewoman, devoured from above, large worm monster, spooky environment, horror"

2. The script passes anisnuff_v15_captions.faiss and anisnuff_v15_captions_meta.json to Qwen3-Embedding-4B (it can be run on CPU to save VRAM) for the word search.

3. The script sends a request to llama-server to generate an improved prompt. The search results returned from Qwen3-Embedding-4B is attached to the request.

4. Qwen3.6-abliterated (or your uncensored LLM) will return the improved prompt. You can get either natural sentences or danbooru tags. Here is what I get.

5. Return to 1.
Post number No.18849
Board Artificial Intelligence
Optional. Describe what's wrong with it.