lamini-ai/lamini-earnings-calls

Python

43

13 commits

updated Jun 13, 2024

See the code

README

This repo has been deprecated, please refer to https://github.com/lamini-ai/lamini-sdk

lamini-earnings-calls

Generate a question answer dataset from any earnings call transcript. Perfect for finetuning LLMs that are experts in current financial data.

Clone this repo

git clone git@github.com:lamini-ai/lamini-earnings-calls.git

Get your lamini API key

Run the script

./generate-qa.sh

Add your own data

This script reads from data/earnings-transcripts.jsonl . You can add your own in a format like this:

{
  "date": "Aug 27, 2020, 9:00 p.m. ET",
  "exchange": "NASDAQ: BILI",
  "q": "2020-Q2",
  "ticker": "BILI",
  "transcript": "..."
}
{
  "date": "Jul 30, 2020, 4:30 p.m. ET",
  "exchange": "NYSE: GFF",
  "q": "2020-Q3",
  "ticker": "GFF",
  "transcript": "..."
}

You can also modify the data loading function in lamini_earnings_calls/main.py to fit your needs:

async def load_earnings_calls():
    path = "/app/lamini-earnings-calls/data/earnings-transcripts.jsonl"

    with jsonlines.open(path) as reader:
        for line in reader:
            logger.info(f"Loaded earnings call for {line['ticker']}")
            yield PromptObject(prompt="", data=line)

Contributors

gdiamos

5 commits

powerjohnnyli

5 commits

greg1232

2 commits

edamamez

1 commits

lamini-ai/lamini-earnings-calls

Python

43

13 commits

updated Jun 13, 2024

See the code

README

This repo has been deprecated, please refer to https://github.com/lamini-ai/lamini-sdk

lamini-earnings-calls

Generate a question answer dataset from any earnings call transcript. Perfect for finetuning LLMs that are experts in current financial data.

Clone this repo

git clone git@github.com:lamini-ai/lamini-earnings-calls.git

Get your lamini API key

Run the script

./generate-qa.sh

Add your own data

This script reads from data/earnings-transcripts.jsonl . You can add your own in a format like this:

{
  "date": "Aug 27, 2020, 9:00 p.m. ET",
  "exchange": "NASDAQ: BILI",
  "q": "2020-Q2",
  "ticker": "BILI",
  "transcript": "..."
}
{
  "date": "Jul 30, 2020, 4:30 p.m. ET",
  "exchange": "NYSE: GFF",
  "q": "2020-Q3",
  "ticker": "GFF",
  "transcript": "..."
}

You can also modify the data loading function in lamini_earnings_calls/main.py to fit your needs:

async def load_earnings_calls():
    path = "/app/lamini-earnings-calls/data/earnings-transcripts.jsonl"

    with jsonlines.open(path) as reader:
        for line in reader:
            logger.info(f"Loaded earnings call for {line['ticker']}")
            yield PromptObject(prompt="", data=line)

Contributors

gdiamos

5 commits

powerjohnnyli

5 commits

greg1232

2 commits

edamamez

1 commits

Languages

Python

79.9%

Shell

17.4%

Dockerfile

2.7%