The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
[Bugfix] fix chat pdf streamlit example (#1108)
Deven Patel1976d38b258b
diff --git a/examples/chat-pdf/.streamlit/secrets.toml b/examples/chat-pdf/.streamlit/secrets.tomldeleted file mode 100644index e69de29bb..000000000diff --git a/examples/chat-pdf/app.py b/examples/chat-pdf/app.pyindex 80a12e49c..0b2fefaee 100644--- a/examples/chat-pdf/app.py+++ b/examples/chat-pdf/app.py@@ -146,7 +146,7 @@ if prompt := st.chat_input("Ask me anything!"):full_response += "\n\n**Sources**:\n"sources = []for i, citation in enumerate(citations):- source = citation[1]+ source = citation[1]["url"]pattern = re.compile(r"([^/]+)\.[^\.]+\.pdf$")match = pattern.search(source)if match:diff --git a/examples/private-ai/privateai.py b/examples/private-ai/privateai.pyindex 25c2738d8..613bc2a16 100644--- a/examples/private-ai/privateai.py+++ b/examples/private-ai/privateai.py@@ -7,7 +7,7 @@ while True:user_input = input("Enter your question (type 'exit' to quit): ")# Break the loop if the user types 'exit'- if user_input.lower() == 'exit':+ if user_input.lower() == "exit":break# Process the input and provide a response