Social gpt
Project description
Social GPT
This package helps you to build embeddings based on someone social profile. It will scrape the data from the social media and build the embeddings based on the data. The embeddings can be used for further analysis. Once scraped, you can query it with the use of openai.
Installation
Install using following command:
pipenv install social-gpt
Setup
Update the example.env and change it's name to .env. Add relevant information in the .env file.
Creating embeddings
As of now, only youtube is supported. We will be bringing more social media platforms soon. To create embeddings, run the following command:
from social_gpt.ingestion.ingestion import SocialIngestion
ingestion = SocialIngestion(channel_id, 'youtube')
index_id = ingestion.create_embeddings()
Store this index_id for querying the embeddings.
Querying embeddings
from social_gpt.query.query_helper import QueryHelper
q = QueryHelper(index_id)
response = q.query_embeddings('What is the best way to learn python?')
print(response)
That's it!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file
social_gpt-0.0.11.tar.gz.File metadata
File hashes
43cee5da1639cc36b91fc6324155eff910261903591da8f75cedf942d8ba465523972db44ad3905b2c3fdf5270688d43393fa5eb165d8718195a98fbbbb10a9e5c0e24819728c188fcc3328d06a0221aSee more details on using hashes here.