Notebooks
A
Azure
Ingest Github Issues Qdrant

Ingest Github Issues Qdrant

azure-openai-samplesBasic_SamplesdotnetcsharpDatastores

Ingest GitHub Issues into Qdrant

This sample shows how to get started loading and querying dotnet/runtime repo GitHub issue embeddings using Azure OpenAI and the Qdrant SDK

Install packages

[1]
[2]
[ ]

Add using statements

[4]

Configure Azure OpenAI credentials

[6]

Configure GitHub credentials

You will need access token with rights to query and update issues.

[38]

Configure OpenAI client

[39]

Configure GitHub client

[40]
Using GitHub API token

Download data from GitHub

Get labels from the repository

[41]
[42]

Get all issues from the repository

[43]
[44]
[45]
[46]
[66]

Helper functions to save and load to disk

[48]
[67]

Naive Search

[68]
[69]
[70]
[71]

Chunk issues

[72]
[73]

Initialize collection of issues with chunks

[74]
[75]

Helper functions to save and load chunks to disk

[76]

Chunk data and generate embeddings

[77]
[78]
[79]

Embedding Search

[80]
[81]
[82]
[84]
[85]

Store in DB

Start DB locally

[86]
docker: error during connect: this error may indicate that the docker daemon is not running: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create": open //./pipe/docker_engine: The system cannot find the file specified.
See 'docker run --help'.
Command failed: SubmitCode: docker run -d -p 6333:6333 -p 6334:6334 -v "$pwd/q ...
[40]

Initialize Qdrant client

[41]

Create collection

[42]
[43]
[44]

Map issue embeddings to points

[45]
[46]

Insert data into Qdrant collection

[47]

Get Count

[48]

Search with Qdrant

[49]
[50]