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: 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


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.10.tar.gz (6.2 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.10-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: social_gpt-0.0.10.tar.gz
  • Upload date:
  • Size: 6.2 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.10.tar.gz
Algorithm Hash digest
SHA256 3199a668f8bc02fc05ba92b7ae6a918c59a19c10b2925e801f67b2b0da91692f
MD5 6495490458105e128683fbf6a473beaa
BLAKE2b-256 263b2fac203c8ec557a0c0e4b537d60cc415e5e9659af13cb67cce056ccacd89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: social_gpt-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 c54b5c44facd9f19f243c1bc22543a416d3acfd9fc7766d817eb5e23e94a1cb1
MD5 756836d52e51140cdce26090eebd6425
BLAKE2b-256 6dd96099f530710864dc00f7d6fcd9720eb7f7c61e6fae6774d2c24a96d2f84a

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