8000 update readme · explodinggradients/linkedin_ai@262a2bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 262a2bd

Browse files
committed
update readme
1 parent 12dd766 commit 262a2bd

File tree

1 file changed

+6
-35
lines changed

1 file changed

+6
-35
lines changed

README.md

+6-35
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,30 @@
11
# LinkedIn AI:
22
Build Your Own AI Assistant powered by LinkedIn Content
33

4-
This hackathon repository provides you with the foundation to build an AI assistant that can answer questions based on LinkedIn content. The system uses RAG (Retrieval-Augmented Generation) to provide responses that matchs knowledge of the content author.
5-
64
## 🚀 Getting Started: Installation
75

8-
### Option 1: Install directly from GitHub
9-
106
```
11-
bashpip install git+https://github.com/shahules786/linkedin_ai.git
12-
```
13-
14-
This command downloads and installs the package directly from the GitHub repository. It gives you the latest version without needing to clone the repo locally.
15-
16-
### Option 2: Clone and install locally
17-
```
18-
bashgit clone git@github.com:shahules786/linkedin_ai.git
7+
git clone git@github.com:shahules786/linkedin_ai.git
198
cd linkedin_ai
209
pip install -e .
2110
```
22-
This approach clones the repository to your local machine, then installs it in "editable" mode (the -e flag). This allows you to make changes to the code and have them take effect immediately without reinstalling.#
23-
24-
## Quick Example
25-
```py
26-
import os
27-
from linkedin_ai import LinkedinAI
28-
29-
# Set your OpenAI API key in environment variables for security
30-
os.environ["OPENAI_API_KEY"] = "YOUR_OPENAI_API_KEY"
31-
32-
# Create an instance using BM25 retrieval with your LinkedIn data
33-
my_ai = LinkedinAI.from_bm25(posts="path/to/your/linkedin_posts.json")
34-
35-
# Ask questions to your AI assistant
36-
response = my_ai.ask("What is the best way to learn Python?")
37-
print(response)
38-
```
39-
40-
This code initializes a LinkedIn AI assistant that leverages the BM25 algorithm to find relevant content in your LinkedIn posts before generating a response. The response will match the style of the original content.
4111

4212
## Your Hackathon Journey
13+
4314
### Step 1: Explore the Basics
44-
Start by checking out the [example notebook](docs/0_example.ipynb) to understand how the core functionality works. This will introduce you to:
15+
Start by checking out the [example notebook](0_example.ipynb) to understand how the core functionality works. This will introduce you to:
4516

4617
- How to load LinkedIn post data
4718
- How to initialize the AI assistant
4819
- How to ask questions and get responses
4920

5021
### Step 2: Run Your First Experiment
51-
Move on to the [experiment notebook](docs/01_experiment.ipynb) where you'll learn:
22+
Move on to the [experiment notebook](01_experiment.ipynb) where you'll learn:
5223

53-
- How to create test datasets
5424
- How to set up LLM-based evaluation metrics
5525
- How to run and track experiments systematically
56-
- How to compare different approaches
26+
- How to compare different experiments
27+
- Ship the best-performing version of your AI assistant
5728

5829
## Key Features
5930

0 commit comments

Comments
 (0)
0