Skip to content

Commit

Permalink
Recreate database right before uploading the new points instead of be…
Browse files Browse the repository at this point in the history
…fore all of the processing
  • Loading branch information
smallketchup82 committed Sep 29, 2024
1 parent a173288 commit 5006285
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions dataset-assistant/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ private static async Task<int> Main(string[] args)
? int.Parse(qdrantUrlAndPort[1])
: 6334);

if (!dryrunOptionValue)
await qdrantClient.RecreateCollectionAsync("galaxypedia", new VectorParams
{
Distance = Distance.Cosine,
Size = 1536
});
deptask.Value(100);

#endregion
Expand All @@ -139,6 +133,11 @@ private static async Task<int> Main(string[] args)

if (!dryrunOptionValue)
{
await qdrantClient.RecreateCollectionAsync("galaxypedia", new VectorParams
{
Distance = Distance.Cosine,
Size = 1536
});
await DatasetCreator.UpsertPointsIntoQdrant(embeddedChunks, qdrantClient);
upsertTask?.Value(100);
}
Expand Down

0 comments on commit 5006285

Please sign in to comment.