Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Index
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Llama Index
Commits
1ea5b233
Unverified
Commit
1ea5b233
authored
1 year ago
by
Logan
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix elasticsearch async check (#10549)
parent
a80a8363
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llama_index/vector_stores/elasticsearch.py
+2
-1
2 additions, 1 deletion
llama_index/vector_stores/elasticsearch.py
with
2 additions
and
1 deletion
llama_index/vector_stores/elasticsearch.py
+
2
−
1
View file @
1ea5b233
"""
Elasticsearch vector store.
"""
"""
Elasticsearch vector store.
"""
import
asyncio
import
asyncio
import
uuid
import
uuid
from
logging
import
getLogger
from
logging
import
getLogger
...
@@ -243,7 +244,7 @@ class ElasticsearchStore(BasePydanticVectorStore):
...
@@ -243,7 +244,7 @@ class ElasticsearchStore(BasePydanticVectorStore):
index_name: Name of the AsyncElasticsearch index to create.
index_name: Name of the AsyncElasticsearch index to create.
dims_length: Length of the embedding vectors.
dims_length: Length of the embedding vectors.
"""
"""
if
await
self
.
client
.
indices
.
exists
(
index
=
index_name
):
if
self
.
client
.
indices
.
exists
(
index
=
index_name
):
logger
.
debug
(
f
"
Index
{
index_name
}
already exists. Skipping creation.
"
)
logger
.
debug
(
f
"
Index
{
index_name
}
already exists. Skipping creation.
"
)
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment