Empowering Conversations with Real-Time Facts
ContextPlus is a Python library designed to enhance conversations by providing real-time facts and information using large language models (LLMs). It operates completely on the CPU, making it accessible for integration into various applications without the need for specialized hardware.
To install ContextPlus, use the following pip command:
pip install contextplus
Import and use the context
function from the contextplus
library to integrate real-time factual data into your projects:
from contextplus import context
# Example usage
response = context("Who are the family members of Barack Obama?")
print(response)
>> The family of Barack Obama, the 44th president of the United States, is a prominent American family active in law, education, activism and politics. His immediate family includes his wife Michelle Obama and daughters Malia and Sasha. He often referred to his family during his candidacy and two terms as president. His family is of African-American heritage, descendants of Africans and Europeans of the colonial era and antebellum eras. Michelle Obama's family history traces from colonists and slavery in the South to Reconstruction.