Skip to content

Commit

Permalink
Update web.py
Browse files Browse the repository at this point in the history
generalize function description
  • Loading branch information
ArthurMinovsky authored Oct 5, 2024
1 parent d7bc2b3 commit de7c6fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def initialize_milvus_collection():
FieldSchema(name="embedding", dtype=DataType.FLOAT_VECTOR, dim=1024), # Adjust dim if needed
FieldSchema(name="text", dtype=DataType.VARCHAR, max_length=65535)
]
schema = CollectionSchema(fields, "Document embeddings for travel information")
schema = CollectionSchema(fields, "Document embeddings for Information database")
collection = Collection("document_embeddings", schema)

# Create an IVF_FLAT index for the embedding field
Expand Down Expand Up @@ -334,4 +334,4 @@ def generate():
return response.json()

# if __name__ == "__main__":
# app.run(host="0.0.0.0", port=5000, debug=False)
# app.run(host="0.0.0.0", port=5000, debug=False)

0 comments on commit de7c6fc

Please sign in to comment.