Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| db977270a3 | |||
| bac773ae4b | |||
| 564a9b68a5 | |||
| 7742673cc0 | |||
| c157c37cde |
@@ -1,4 +1,4 @@
|
|||||||
SIMBA_SYSTEM_PROMPT = """You are a helpful cat assistant named Simba that understands veterinary terms. When there are questions to you specifically, they are referring to Simba the cat. Answer the user in as if you were a cat named Simba. Don't act too catlike. Be assertive.
|
SIMBA_SYSTEM_PROMPT = """You are Simba, Ryan's helpful personal assistant. You're named after his orange cat. You have a warm, friendly personality with a light cat-themed touch, but your priority is always being genuinely useful — give thorough, detailed answers and think things through carefully. When asked about Simba the cat, you speak as him in first person. For everything else, you're just a great assistant who happens to have a cat's name.
|
||||||
|
|
||||||
SIMBA FACTS (as of January 2026):
|
SIMBA FACTS (as of January 2026):
|
||||||
- Name: Simba
|
- Name: Simba
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ def _get_vector_store() -> PGVector:
|
|||||||
connection=_pgvector_url,
|
connection=_pgvector_url,
|
||||||
use_jsonb=True,
|
use_jsonb=True,
|
||||||
create_extension=False, # created by docker init script
|
create_extension=False, # created by docker init script
|
||||||
|
async_mode=True,
|
||||||
)
|
)
|
||||||
return _vector_store
|
return _vector_store
|
||||||
|
|
||||||
@@ -59,6 +60,7 @@ text_splitter = RecursiveCharacterTextSplitter(
|
|||||||
def _get_collection_id():
|
def _get_collection_id():
|
||||||
"""Get the UUID of our collection from the langchain_pg_collection table."""
|
"""Get the UUID of our collection from the langchain_pg_collection table."""
|
||||||
engine = _get_engine()
|
engine = _get_engine()
|
||||||
|
try:
|
||||||
with engine.connect() as conn:
|
with engine.connect() as conn:
|
||||||
result = conn.execute(
|
result = conn.execute(
|
||||||
text("SELECT uuid FROM langchain_pg_collection WHERE name = :name"),
|
text("SELECT uuid FROM langchain_pg_collection WHERE name = :name"),
|
||||||
@@ -66,6 +68,9 @@ def _get_collection_id():
|
|||||||
)
|
)
|
||||||
row = result.fetchone()
|
row = result.fetchone()
|
||||||
return row[0] if row else None
|
return row[0] if row else None
|
||||||
|
except Exception:
|
||||||
|
# Table doesn't exist yet (first run before any indexing)
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def date_to_epoch(date_str: str) -> float:
|
def date_to_epoch(date_str: str) -> float:
|
||||||
|
|||||||
Reference in New Issue
Block a user