Skip to content

Commit 14b6749

Browse files
committed
update text query
1 parent 46f8672 commit 14b6749

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

docs/user_guide/release_guide/0_5_0_release.ipynb

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,38 +121,38 @@
121121
},
122122
{
123123
"cell_type": "code",
124-
"execution_count": 14,
124+
"execution_count": 16,
125125
"metadata": {},
126126
"outputs": [
127127
{
128128
"data": {
129129
"text/plain": [
130-
"[{'vector_distance': '0.655903100967',\n",
130+
"[{'vector_distance': '0.61871612072',\n",
131131
" 'job_title': 'Software Engineer',\n",
132-
" 'vector_similarity': '0.672048449516',\n",
133-
" 'text_score': '0',\n",
134-
" 'hybrid_score': '0.470433914661'},\n",
135-
" {'vector_distance': '0.892600417137',\n",
136-
" 'job_title': 'Data Analyst',\n",
137-
" 'vector_similarity': '0.553699791431',\n",
138-
" 'text_score': '0',\n",
139-
" 'hybrid_score': '0.387589854002'},\n",
140-
" {'vector_distance': '0.958741784096',\n",
132+
" 'vector_similarity': '0.69064193964',\n",
133+
" 'text_score': '49.6242910712',\n",
134+
" 'hybrid_score': '15.3707366791'},\n",
135+
" {'vector_distance': '0.937997639179',\n",
141136
" 'job_title': 'Marketing Manager',\n",
142-
" 'vector_similarity': '0.520629107952',\n",
137+
" 'vector_similarity': '0.53100118041',\n",
138+
" 'text_score': '49.6242910712',\n",
139+
" 'hybrid_score': '15.2589881476'},\n",
140+
" {'vector_distance': '0.859166145325',\n",
141+
" 'job_title': 'Data Analyst',\n",
142+
" 'vector_similarity': '0.570416927338',\n",
143143
" 'text_score': '0',\n",
144-
" 'hybrid_score': '0.364440375566'}]"
144+
" 'hybrid_score': '0.399291849136'}]"
145145
]
146146
},
147-
"execution_count": 14,
147+
"execution_count": 16,
148148
"metadata": {},
149149
"output_type": "execute_result"
150150
}
151151
],
152152
"source": [
153153
"from redisvl.query import HybridQuery\n",
154154
"\n",
155-
"text = \"Find a job as a software engineer\"\n",
155+
"text = \"Find a job as a where you develop software\"\n",
156156
"vec = emb_model.embed(text, as_buffer=True)\n",
157157
"\n",
158158
"query = HybridQuery(\n",
@@ -180,24 +180,29 @@
180180
},
181181
{
182182
"cell_type": "code",
183-
"execution_count": 13,
183+
"execution_count": 17,
184184
"metadata": {},
185185
"outputs": [
186186
{
187187
"data": {
188188
"text/plain": [
189-
"[]"
189+
"[{'id': 'jobs:01JR0V1SA29RVD9AAVSTBV9P5H',\n",
190+
" 'score': 49.62429107116745,\n",
191+
" 'job_title': 'Software Engineer'},\n",
192+
" {'id': 'jobs:01JR0V1SA23ZE7BRERXTZWC33Z',\n",
193+
" 'score': 49.62429107116745,\n",
194+
" 'job_title': 'Marketing Manager'}]"
190195
]
191196
},
192-
"execution_count": 13,
197+
"execution_count": 17,
193198
"metadata": {},
194199
"output_type": "execute_result"
195200
}
196201
],
197202
"source": [
198203
"from redisvl.query import TextQuery\n",
199204
"\n",
200-
"text = \"Find a job as a software engineer\"\n",
205+
"text = \"Find where you develop software\"\n",
201206
"\n",
202207
"query = TextQuery(\n",
203208
" text=text,\n",

0 commit comments

Comments
 (0)