Skip to content

Commit

Permalink
Add dynamic Entra credentials to AsyncConnectionPool
Browse files Browse the repository at this point in the history
  • Loading branch information
lossyrob committed Oct 18, 2024
1 parent bec6917 commit c758b12
Show file tree
Hide file tree
Showing 6 changed files with 230 additions and 151 deletions.
7 changes: 7 additions & 0 deletions python/samples/concepts/memory/new_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
from semantic_kernel.connectors.ai.open_ai import OpenAIEmbeddingPromptExecutionSettings, OpenAITextEmbedding
from semantic_kernel.connectors.ai.open_ai.services.azure_text_embedding import AzureTextEmbedding
from semantic_kernel.connectors.memory.azure_ai_search import AzureAISearchCollection
from semantic_kernel.connectors.memory.azure_db_for_postgres.azure_db_for_postgres_collection import (
AzureDBForPostgresCollection,
)
from semantic_kernel.connectors.memory.postgres.postgres_collection import PostgresCollection
from semantic_kernel.connectors.memory.qdrant import QdrantCollection
from semantic_kernel.connectors.memory.redis import RedisHashsetCollection, RedisJsonCollection
Expand Down Expand Up @@ -88,6 +91,10 @@ class MyDataModelList:
"ai_search": lambda: AzureAISearchCollection[MyDataModel](
data_model_type=MyDataModel,
),
"azure_db_for_postgres": lambda: AzureDBForPostgresCollection[str, MyDataModel](
data_model_type=MyDataModel,
collection_name=collection_name,
),
"postgres": lambda: PostgresCollection[str, MyDataModel](
data_model_type=MyDataModel,
collection_name=collection_name,
Expand Down
Loading

0 comments on commit c758b12

Please sign in to comment.