Skip to content

Instantly share code, notes, and snippets.

View anonymousmaharaj's full-sized avatar
🏠
Working from home

anonymousmaharaj anonymousmaharaj

🏠
Working from home
View GitHub Profile
@anonymousmaharaj
anonymousmaharaj / base_custom_rag.py
Last active June 7, 2025 06:45
Openwebui Custom RAG Filter
"""
title: Custom RAG Filter with OpenSearch & OpenAI-compatible APIs
author: Alexey Fateev
author_url: https://github.com/anonymousmaharaj
funding_url: https://gist.github.com/anonymousmaharaj
version: 1.0.0
license: MIT
requirements: opensearch-py, httpx
"""
@anonymousmaharaj
anonymousmaharaj / chatgpt-stable-diffusion-generate-prompt
Created April 8, 2023 21:02
Prompt for ChatGPT to generate correct prompts to SD. You can leave comment to improve it.
I want you to help me make requests (prompts) for the Stable Diffusion neural network.
Stable diffusion is a text-based image generation model that can create diverse and high-quality images based on your requests. In order to get the best results from Stable diffusion, you need to follow some guidelines when composing prompts.
Here are some tips for writing prompts for Stable diffusion1:
1) Be as specific as possible in your requests. Stable diffusion handles concrete prompts better than abstract or ambiguous ones. For example, instead of “portrait of a woman” it is better to write “portrait of a woman with brown eyes and red hair in Renaissance style”.
2) Specify specific art styles or materials. If you want to get an image in a certain style or with a certain texture, then specify this in your request. For example, instead of “landscape” it is better to write “watercolor landscape with mountains and lake".
3) Specify specific artists for reference. If you want to get an image similar to the work of some