Skip to content

Perun98/write-in-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Style Generator using Pinecone and OpenAI

This program is designed for generating text in the style of a specified person or model by taking inspiration from Pinecone indexes. Pinecone is a real-time vector database used for efficient storage and retrieval of embeddings. By utilizing Pinecone and OpenAI models, this program enables users to create text in a specific style.

Overview

The purpose of this program is to facilitate text generation in the style of various individuals or models. It retrieves text samples from Pinecone indexes related to a particular topic and then generates new text in a similar style using OpenAI models. It provides users with the ability to customize the style, topic, and text generation parameters.

Key Features

Here are some of the key features and functionalities offered by this program:

  • Style Selection: Users can choose the writing style of specific individuals or models, such as "Dragan Simic," "Miljan Radanovic," or "Pera Lozac," each with its unique characteristics.

  • Topic-Based Text Retrieval: The program fetches text samples related to a specified topic or theme from Pinecone indexes, ensuring that the generated text aligns with the chosen subject.

  • Text Generation Customization: Users can fine-tune text generation settings by adjusting parameters like temperature and relevance, allowing for creative control over the generated content.

  • Streamlit Interface: The program provides an intuitive Streamlit user interface for easy interaction and text generation.

Getting Started

To use this program effectively, follow these steps:

  1. Ensure you have Pinecone credentials set up with the required API key and environment variables.

  2. Clone or download the program to your local machine.

  3. Customize the program by specifying the desired writing style, topic, and text generation settings.

  4. Run the program using Streamlit to initiate the text generation process.

  5. Review and download the generated text in various formats, such as plain text, PDF, or DOCX.

Usage Guidelines

  • Style Selection: Choose the writing style of the text by selecting a specific individual or model from the available options. Each style offers a distinct tone and manner of writing.

  • Topic Specification: Describe the topic or theme for which you want to generate text. Provide details about the subject and the desired format of the text.

  • Text Generation Settings: Adjust parameters like temperature and relevance to control the creativity and relevance of the generated text.

  • Text Retrieval: The program will fetch relevant text samples from Pinecone indexes based on the specified topic. If no suitable content is found, it will perform an internet search for relevant information.

  • Text Generation: After processing the topic and style, the program generates text that mimics the chosen writing style. The generated text can be further customized and refined.

Script Details

  • Author: Positive
  • Date: 11.09.23
  • License: MIT

Please note that this program relies on Pinecone for text retrieval and OpenAI for text generation. Proper setup and configuration of Pinecone and OpenAI credentials are essential for the program to function correctly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Languages