mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
### Motivation and Context Adding a Pinecone Memory store using the Pinecone vector database client for SK python Add Pinecone vector db memory to SK Python Memory storage for SK and vectors ### Description - Using the existing pinecone python module/client - Reviewing with console exceptions responses that come back from pinecone, will update if any were omitted - Currently investigating and would like feedback if I should respond to throttling errors in a different manner - Currently testing each API response, slight delay may occur due to throttling of my starter account in Pinecone. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [X] The PR follows SK Contribution Guidelines (https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) - [ ] The code follows the .NET coding conventions (https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions) verified with `dotnet format` - [ ] All unit tests pass, and I have added new tests where possible - [X] I didn't break anyone 😄 --------- Co-authored-by: Lee Miller <[email protected]> Co-authored-by: Casey Schadewitz <[email protected]> Co-authored-by: cschadewitz <[email protected]> Co-authored-by: Abby Harrison <[email protected]> Co-authored-by: Devis Lucato <[email protected]> Co-authored-by: Dmytro Struk <[email protected]> Co-authored-by: Shawn Callegari <[email protected]>
39 lines
1.3 KiB
Python
39 lines
1.3 KiB
Python
# Copyright (c) Microsoft. All rights reserved.
|
|
|
|
from semantic_kernel import core_skills, memory
|
|
from semantic_kernel.kernel import Kernel
|
|
from semantic_kernel.orchestration.context_variables import ContextVariables
|
|
from semantic_kernel.orchestration.sk_context import SKContext
|
|
from semantic_kernel.orchestration.sk_function_base import SKFunctionBase
|
|
from semantic_kernel.semantic_functions.chat_prompt_template import ChatPromptTemplate
|
|
from semantic_kernel.semantic_functions.prompt_template import PromptTemplate
|
|
from semantic_kernel.semantic_functions.prompt_template_config import (
|
|
PromptTemplateConfig,
|
|
)
|
|
from semantic_kernel.semantic_functions.semantic_function_config import (
|
|
SemanticFunctionConfig,
|
|
)
|
|
from semantic_kernel.utils.null_logger import NullLogger
|
|
from semantic_kernel.utils.settings import (
|
|
azure_openai_settings_from_dot_env,
|
|
openai_settings_from_dot_env,
|
|
pinecone_settings_from_dot_env,
|
|
)
|
|
|
|
__all__ = [
|
|
"Kernel",
|
|
"NullLogger",
|
|
"openai_settings_from_dot_env",
|
|
"azure_openai_settings_from_dot_env",
|
|
"pinecone_settings_from_dot_env",
|
|
"PromptTemplateConfig",
|
|
"PromptTemplate",
|
|
"ChatPromptTemplate",
|
|
"SemanticFunctionConfig",
|
|
"ContextVariables",
|
|
"SKFunctionBase",
|
|
"SKContext",
|
|
"memory",
|
|
"core_skills",
|
|
]
|