Skip to main content

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. Also, as of now, we will scrape 50 videos, which we will extend to all of the videos shortly. 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('What is the best way to learn python?')
print(response)

That's it!

Metadata

Release files for social-gpt 0.0.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for social-gpt 0.0.19
File Size Uploaded
social_gpt-0.0.19.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for social-gpt 0.0.19
File Interpreter ABI Platform
social_gpt-0.0.19-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / social_gpt-0.0.19.tar.gz

Download URL social_gpt-0.0.19.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e443d230cf6be29a978dc63711e0f695a1222e3a8f572d4a2ff2255d724de320
BLAKE2b-256 checksum
How to use checksums
e7c3a5a2edb79016f1a98f110cbcbc9b3ae1c7a56d7917aac165273d18cb653c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / social_gpt-0.0.19-py3-none-any.whl

Download URL social_gpt-0.0.19-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70bdcb5060a8838c5e4a765e93db9952a532ef22adfeab29c7a504e67d98a6d5
BLAKE2b-256 checksum
How to use checksums
d1d230b6b8c3b38f72b3a6525e7e47a66fb33cef378281715af3d1cbb17c472b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.0.19 This release

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page