Skip to content

Commit 94ece9c

Browse files
committed
Changed example in README.md and displayed the output
1 parent f73219f commit 94ece9c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Import and use the `context` function from the `contextplus` library to integrat
3636
from contextplus import context
3737

3838
# Example usage
39-
response = context("What is a LLM?")
39+
response = context("Who are the family members of Barack Obama?")
4040
print(response)
4141
```
42+
43+
```
44+
>> 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.
45+
```

contextplus/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ def context(query, min_summary_length=100, max_summary_length=200, n_wiki_pages=
7777

7878

7979
if __name__ == "__main__":
80-
user_query = "What are the names of Barack Obamas children?"
80+
user_query = "Who are the family members of Barack Obama?"
8181
context = context(user_query, verbose=True)
8282
print(context)

0 commit comments

Comments
 (0)