File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5
5
<br />
6
6
<div display =" inline-block " >
7
7
<a href="https://docsearch.redisvl.com"><b>Hosted Demo</b></a>
8
- <a href="https://github.com/RedisVentures/redis-arXiv-search"><b>Code</b></a>
8
+ <a href="https://github.com/redis-developer/redis-ai-resources"><b>More AI Recipes</b></a>
9
+ <!-- <a href="https://github.com/RedisVentures/redis-arXiv-search"><b>Code</b></a> -->
9
10
<a href="https://datasciencedojo.com/blog/ai-powered-document-search/"><b>Blog Post</b></a>
10
11
<a href="https://redis.io/docs/interact/search-and-query/advanced-concepts/vectors/"><b>Redis Vector Search Documentation</b></a>
11
12
</div >
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ def get_index():
28
28
index = SearchIndex .from_yaml (os .path .join (dir_path , "index.yaml" ))
29
29
index .connect (redis_url = config .REDIS_URL )
30
30
31
- if index .exists ():
32
- return index
33
- else :
31
+ if not index .exists ():
34
32
index .create (overwrite = True )
35
33
34
+ return index
35
+
36
36
37
37
async def get_async_index ():
38
38
global global_index
You can’t perform that action at this time.
0 commit comments