Open webchick opened 2 hours ago
Also FWIW the chatbot example has the same angry line about await being outside of function:
File "/Users/webchick/TechAround/zep/chatbot.py", line 26
await zep.user.add(
^^^^^^^^^^^^^^^^^^^
SyntaxError: 'await' outside function
So whatever adjustment is made to the CE instructions to account for that should probably be made here as well.
No time tonight to get a PR for these things going, but figured I would document my findings in case it is helpful to someone.
Profile: I'm someone with, shall we say, "fledgling" Python experience ;) but who is interested in taking Zep Community Edition for a spin. (Since this may not be your direct target audience, you may or may not want to do something about this report ;))
Machine: This was on a Mac M3 Pro running macOS Sequoia 15.0.1 (24A348), in case this is relevant.
Expectation: I could copy/pasta/modify the stuff in the quickstart guide and get Zep up and running in ~5 minutes.
Reality: Welllll... π
Here's the story of what actually happened. :)
Starting Zep
β‘οΈ Starting point: https://github.com/getzep/zep README
β‘οΈ This directs me to: https://help.getzep.com/ce/quickstart
β git clone https://github.com/getzep/zep.git
β set
api_secret
andorganization_name
inzep.yaml
=> Suggestion: Instead of pasting the whole file and having me play inspector gadget ;) call out only the lines you need me to edit.β ./zep up Results in error:
A few things:
.env
file is an optional thing, and that I "could" use it, e.g. for a PostgreSQL password. This error, OTOH, is telling me it's actually required. This is a bit confusing.secret
value but the value is actually calledapi_secret
no? (unless there are two??)If I follow the instructions in the blue box and create an
.env
fie with that line in it, then things seem to work. πStarter code
β‘οΈ Directed to https://help.getzep.com/ce/sdks
β pip install zep-python
β οΈ By default, Python will use
pip3
andpython3
here instead of pip/python, though most people can probably figure that out. :)β Initialize client example
Ran into a few snags here, first is:
Missing requirement: packaging
Turns out you need to
pip install packaging
if you just set your Python environment up for the first time earlier this evening. ;) πThe case of the missing .env variables
Then, I get:
==> Suggestion: In the Zep Cloud UI it calls this a "Project Key" β consider unifying the labels of these.
Back to that
.env
file again, which now looks like this:and run:
...to re-load it. This seems to get past the error. π
β Usage example
Aysnc code error
Error:
For this one, I'm not sure. I asked ChatGPT and got back that this should be wrapped in an
asyncio
call, but I assume this is probably PEBCAK where my Python knowledge hits a wall. ;) Still, since this is billed as "Quick Start" and since it is conceivable that someone might have an interest in tinkering with Zep without having a previous experience with async Python, it might not hurt to be a bit more explicit here about how to run the file.Anyway, if you do that:
The case of the missing env variables (part II)
Then you get this:
This is because the second code block is missing lines from the first code block:
I add that stuff (above the
async def main()
line) we move past that error, onto NEW errors:I dunno, but it sure is mad about something ;)
And here is where I must sadly retire, and don't have time atm to investigate further. Hopefully it's a couple of easy fixes to the docs to get this working all spiffy for the next person, though! :) HTH.