Skip to main content

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: pip 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: To get the channel id, go to this website and enter the channel url. It will give you the channel id.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

social_gpt-0.0.12.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

social_gpt-0.0.12-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file social_gpt-0.0.12.tar.gz.

File metadata

  • Download URL: social_gpt-0.0.12.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for social_gpt-0.0.12.tar.gz
Algorithm Hash digest
SHA256 40ec7f5ef4102c7a098d78b55b34b98177da3250100234ca2146669c899084c2
MD5 3561c88a073954b906c97ccfe11af640
BLAKE2b-256 486774e210d82758c4772a3e2ea3b9c431fd5121c42e10eb4e501a7e5561c298

See more details on using hashes here.

File details

Details for the file social_gpt-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: social_gpt-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for social_gpt-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 8b0002db316a3edf54f46ab310ac664f60654d68e706f31dae281b14091356bb
MD5 71b702c872875a33cb427f411a9fb6b4
BLAKE2b-256 8c2137e202901e2ebe7ecbcb457ebab2fc6674455b58f2053d66ba5f04432202

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page