llama-index readers earnings_call_transcript integration
Project description
EARNING CALL TRANSCRIPTS LOADER
pip install llama-index-readers-earnings-call-transcript
This loader fetches the earning call transcripts of US based companies from the website discountingcashflows.com. It is not available for commercial purposes
Install the required dependencies
pip install -r requirements.txt
The Earning call transcripts takes in three arguments
- Year
- Ticker symbol
- Quarter name from the list ["Q1","Q2","Q3","Q4"]
Usage
from llama_index.readers.earnings_call_transcript import EarningsCallTranscript
loader = EarningsCallTranscript(2023, "AAPL", "Q3")
docs = loader.load_data()
The metadata of the transcripts are the following
- ticker
- quarter
- date_time
- speakers_list
Examples
Llama Index
from llama_index.core import VectorStoreIndex, download_loader
from llama_index.readers.earnings_call_transcript import EarningsCallTranscript
loader = EarningsCallTranscript(2023, "AAPL", "Q3")
docs = loader.load_data()
index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
response = query_engine.query(
"What was discussed about Generative AI?",
)
print(response)
Langchain
from langchain.agents import Tool
from langchain.agents import initialize_agent
from langchain.chat_models import ChatOpenAI
from langchain.llms import OpenAI
from llama_index.readers.earnings_call_transcript import EarningsCallTranscript
loader = EarningsCallTranscript(2023, "AAPL", "Q3")
docs = loader.load_data()
tools = [
Tool(
name="LlamaIndex",
func=lambda q: str(index.as_query_engine().query(q)),
description="useful for questions about investor transcripts calls for a company. The input to this tool should be a complete english sentence.",
return_direct=True,
),
]
llm = ChatOpenAI(temperature=0)
agent = initialize_agent(tools, llm, agent="conversational-react-description")
agent.run("What was discussed about Generative AI?")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_earnings_call_transcript-0.5.0.tar.gz.
File metadata
- Download URL: llama_index_readers_earnings_call_transcript-0.5.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1d98677f2ca61050b3f704a2934708de5db14363c51a9a253dd33ed4ebce158
|
|
| MD5 |
a68e42aa8d3683d4aaebf5c9b3b0ded6
|
|
| BLAKE2b-256 |
cac33e50b2fdebddbb75c96cff64dfcd0c7e254d819bd8c36d2c9ae3e039f289
|
File details
Details for the file llama_index_readers_earnings_call_transcript-0.5.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_earnings_call_transcript-0.5.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4841827373ff694995fe0ef7b6787e94902321ea25a0c0e8ede81ba9a46ca61e
|
|
| MD5 |
ae14e5d2f9b849e4a5eb8fa127376fd2
|
|
| BLAKE2b-256 |
b6bf003a25299d6f178f8cb0543cb851a7d134de5436d200b1248f33bb67db62
|