promptlyVectorDB版本v1.0 (ID: 425235)

promptlyVectorDB版本v1.0 (ID: 425235)

This is a vector database containing some 900k prompts from successful txt2img generations taken from the civitai database. The data has been processed and has removed the majority of data around children or potential toxic prompts.

The database is a chroma database with vectors of cleaned prompt, positive prompt, and negative prompt. The cleaned prompt is a processed version of the positive prompt meant to remove extraneous punctuation and prompting artifacts.

The metadata for each vector includes the base model, the nsfw level of the prompt (nsfw vs None), and the imageId associated with the prompt

How to use:

  1. Download the resource and unzip locally

  2. run the following code in a notebook:

    !pip install langchain_community ##assuming you're working from nb. If working from terminal remove !
    from langchain_community.vectorstores import Chroma
    from langchain_community.embeddings.sentence_transformer import SentenceTransformerEmbeddings

    ##Load persisted vectorstore and use all-MiniLM-L12-V2 embeddings (Same as those that were used to MAKE vectorDB)
    embedding_function = SentenceTransformerEmbeddings(model_name="all-MiniLM-L12-v2")

    vectorstore = Chroma(embedding_function=embedding_function,
    persist_directory=LOCALVECTORDB

    ##input some base prompt
    basePrompt = 'A cute kitten'

    ##Retrieve top k=5 similar prompts
    context = vectorstore \
    _search("cleanedPrompt [TOPICKEY] "+ basePrompt,
    filter = {"nsfw": "safe"}, k = 5)

    Note: This does contain sfw and nsfw text. To get nsfw text, toggle nsfw filter to None

    users can then use the prompts to build context in a large language model or for other uses.

描述:

训练词语:

名称: promptlyvectordb_v10.zip

大小 (KB): 4712872

类型: Archive

Pickle 扫描结果: Success

Pickle 扫描信息: No Pickle imports

病毒扫描结果: Success

promptlyVectorDB

promptlyVectorDB

资源下载
下载价格VIP专享
仅限VIP下载升级VIP
犹豫不决让我们错失一次又一次机会!!!
原文链接:https://1111down.com/1046211.html,转载请注明出处
由于网站升级,部分用户密码全部设置为111111,登入后自己修改, 并且VIP等级提升一级(包月提升至包季,包季提升到包年 包年提升至永久)
没有账号?注册  忘记密码?

社交账号快速登录