Skip to content

Commit fbcd6d8

Browse files
committed
pychache test
1 parent 4ef73f0 commit fbcd6d8

File tree

2 files changed

+7
-126
lines changed

2 files changed

+7
-126
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.env
22
node_modules/
3-
.DS_Store
3+
.DS_Store
4+
.pytest_cache/

python-recipes/RAG/04_advanced_redisvl.ipynb

Lines changed: 5 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -713,94 +713,7 @@
713713
"cell_type": "code",
714714
"execution_count": null,
715715
"metadata": {},
716-
"outputs": [
717-
{
718-
"name": "stdout",
719-
"output_type": "stream",
720-
"text": [
721-
"Using dense content representation\n",
722-
"Using dense content representation\n",
723-
"Using dense content representation\n",
724-
"Using dense content representation\n",
725-
"Using dense content representation\n"
726-
]
727-
},
728-
{
729-
"data": {
730-
"text/html": [
731-
"<div>\n",
732-
"<style scoped>\n",
733-
" .dataframe tbody tr th:only-of-type {\n",
734-
" vertical-align: middle;\n",
735-
" }\n",
736-
"\n",
737-
" .dataframe tbody tr th {\n",
738-
" vertical-align: top;\n",
739-
" }\n",
740-
"\n",
741-
" .dataframe thead th {\n",
742-
" text-align: right;\n",
743-
" }\n",
744-
"</style>\n",
745-
"<table border=\"1\" class=\"dataframe\">\n",
746-
" <thead>\n",
747-
" <tr style=\"text-align: right;\">\n",
748-
" <th></th>\n",
749-
" <th>question</th>\n",
750-
" <th>answer</th>\n",
751-
" </tr>\n",
752-
" </thead>\n",
753-
" <tbody>\n",
754-
" <tr>\n",
755-
" <th>0</th>\n",
756-
" <td>What is the trend in the company's revenue and...</td>\n",
757-
" <td>The company experienced revenue growth in fisc...</td>\n",
758-
" </tr>\n",
759-
" <tr>\n",
760-
" <th>1</th>\n",
761-
" <td>What are the company's primary revenue sources?</td>\n",
762-
" <td>The company's primary revenue sources are from...</td>\n",
763-
" </tr>\n",
764-
" <tr>\n",
765-
" <th>2</th>\n",
766-
" <td>How much debt does the company have, and what ...</td>\n",
767-
" <td>As of May 31, 2023, the company had Long-term ...</td>\n",
768-
" </tr>\n",
769-
" <tr>\n",
770-
" <th>3</th>\n",
771-
" <td>What does the company say about its environmen...</td>\n",
772-
" <td>The company acknowledges the importance of env...</td>\n",
773-
" </tr>\n",
774-
" <tr>\n",
775-
" <th>4</th>\n",
776-
" <td>What is the company's strategy for growth?</td>\n",
777-
" <td>NIKE's strategy for growth involves creating i...</td>\n",
778-
" </tr>\n",
779-
" </tbody>\n",
780-
"</table>\n",
781-
"</div>"
782-
],
783-
"text/plain": [
784-
" question \\\n",
785-
"0 What is the trend in the company's revenue and... \n",
786-
"1 What are the company's primary revenue sources? \n",
787-
"2 How much debt does the company have, and what ... \n",
788-
"3 What does the company say about its environmen... \n",
789-
"4 What is the company's strategy for growth? \n",
790-
"\n",
791-
" answer \n",
792-
"0 The company experienced revenue growth in fisc... \n",
793-
"1 The company's primary revenue sources are from... \n",
794-
"2 As of May 31, 2023, the company had Long-term ... \n",
795-
"3 The company acknowledges the importance of env... \n",
796-
"4 NIKE's strategy for growth involves creating i... "
797-
]
798-
},
799-
"execution_count": 21,
800-
"metadata": {},
801-
"output_type": "execute_result"
802-
}
803-
],
716+
"outputs": [],
804717
"source": [
805718
"import asyncio\n",
806719
"import pandas as pd\n",
@@ -828,28 +741,8 @@
828741
{
829742
"cell_type": "code",
830743
"execution_count": null,
831-
"metadata": {
832-
"id": "XnWhfeiGYVrI"
833-
},
834-
"outputs": [
835-
{
836-
"name": "stdout",
837-
"output_type": "stream",
838-
"text": [
839-
"Using dense content representation\n"
840-
]
841-
},
842-
{
843-
"data": {
844-
"text/plain": [
845-
"\"Based on the provided context, we can see that the company in question is NIKE, Inc. The company has a significant presence globally with subsidiaries in various jurisdictions such as Delaware, Netherlands, China, Mexico, Japan, Korea, and Oregon. Additionally, the company's total revenues are substantial, with revenues in the United States alone amounting to $22,007 million in the fiscal year ended May 31, 2023. NIKE, Inc. also has a diverse range of financial assets, including cash, short-term investments, U.S. Treasury securities, commercial paper and bonds, money market funds, time deposits, and U.S. Agency securities.\\n\\nTherefore, based on the information provided, we can conclude that NIKE, Inc. is a large company with a significant global presence and substantial revenues.\""
846-
]
847-
},
848-
"execution_count": 38,
849-
"metadata": {},
850-
"output_type": "execute_result"
851-
}
852-
],
744+
"metadata": {},
745+
"outputs": [],
853746
"source": [
854747
"# An example question that is a bit simplistic...\n",
855748
"await answer_question(index, \"How big is the company?\")"
@@ -889,21 +782,8 @@
889782
{
890783
"cell_type": "code",
891784
"execution_count": null,
892-
"metadata": {
893-
"id": "8_ce8fC8KR50"
894-
},
895-
"outputs": [
896-
{
897-
"data": {
898-
"text/plain": [
899-
"'What is the size of the company in terms of revenue, assets, and market capitalization?'"
900-
]
901-
},
902-
"execution_count": 40,
903-
"metadata": {},
904-
"output_type": "execute_result"
905-
}
906-
],
785+
"metadata": {},
786+
"outputs": [],
907787
"source": [
908788
"# Example Sinple Query Rewritten\n",
909789
"await rewrite_query(\"How big is the company?\")"

0 commit comments

Comments
 (0)