Skip to content

Commit 20437da

Browse files
committed
try, try again
1 parent 328624f commit 20437da

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<br />
66
<div display="inline-block">
77
<a href="https://docsearch.redisvl.com"><b>Hosted Demo</b></a>&nbsp;&nbsp;&nbsp;
8-
<a href="https://github.com/RedisVentures/redis-arXiv-search"><b>Code</b></a>&nbsp;&nbsp;&nbsp;
8+
<a href="https://github.com/redis-developer/redis-ai-resources"><b>More AI Recipes</b></a>&nbsp;&nbsp;&nbsp;
9+
<!-- <a href="https://github.com/RedisVentures/redis-arXiv-search"><b>Code</b></a>&nbsp;&nbsp;&nbsp; -->
910
<a href="https://datasciencedojo.com/blog/ai-powered-document-search/"><b>Blog Post</b></a>&nbsp;&nbsp;&nbsp;
1011
<a href="https://redis.io/docs/interact/search-and-query/advanced-concepts/vectors/"><b>Redis Vector Search Documentation</b></a>&nbsp;&nbsp;&nbsp;
1112
</div>

backend/arxivsearch/db/redis_helpers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def get_index():
2828
index = SearchIndex.from_yaml(os.path.join(dir_path, "index.yaml"))
2929
index.connect(redis_url=config.REDIS_URL)
3030

31-
if index.exists():
32-
return index
33-
else:
31+
if not index.exists():
3432
index.create(overwrite=True)
3533

34+
return index
35+
3636

3737
async def get_async_index():
3838
global global_index

0 commit comments

Comments
 (0)