we-be / c7 Goto Github PK
View Code? Open in Web Editor NEWclaude 3 cosmos conversations container core
License: MIT License
claude 3 cosmos conversations container core
License: MIT License
Under each listing add the link to the OfferUp listing. This can be retrieved from the listing
in app.py.
I'm sick of the selenium chromedriver signing me out of everything on chrome. Yes, I know it's a skill issue. I could just set up another profile or something but no.
TBD
The c3 dashboard need a way to specify storage size
A dropdown box with the option (128gb, 256gb, etc.)
Cosmos is partitioned on status
but we should partition on something else
The dashboard is ridiculously slow when there a high number of listing. It freezes and is borderline unusable.
Improvements
Be option on each phone on survey for pro, pro max, normal, mini, or plus
We need to build a dashboard for @edfarialand to grade and review phones before Claude initiates the conversation. This dashboard will display all listings stored in c3
and reflect his changes.
When Ed saves it throws an error, I guess it's trying to save some listings that don't exist? How could he be updating a listing that doesn't exist.
For now maybe we just except the error and we'll know which ones aren't saving because they will remain on the dashboard after refresh, but graded ones should filter out. We can triage from there.
from @edfarialand when he tried to save grades on the c3 dashboard
Traceback:
File "/usr/local/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in runscript
exec(code, module.__dict)
File "/app/app.py", line 144, in <module>
c3.update(_id, listing_body)
File "/app/offerup/c3.py", line 82, in update
self.container.patch_item(item=listing_id, partition_key=partition, patch_operations=ops)
File "/usr/local/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer
return func(*args, kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/azure/cosmos/container.py", line 764, in patch_item
return self.client_connection.PatchItem(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/azure/cosmos/_cosmos_client_connection.py", line 2017, in PatchItem
result, last_response_headers = self.Patch(path, request_params, request_data, headers, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/azure/cosmos/_cosmos_client_connection.py", line 2868, in Patch
return synchronized_request.SynchronizedRequest(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/azure/cosmos/_synchronized_request.py", line 204, in SynchronizedRequest
return _retry_utility.Execute(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/azure/cosmos/_retry_utility.py", line 85, in Execute
result = ExecuteFunction(function, global_endpoint_manager, args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/azure/cosmos/_retry_utility.py", line 149, in ExecuteFunction
return function(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/azure/cosmos/_synchronized_request.py", line 149, in _Request
raise exceptions.CosmosResourceNotFoundError(message=data, response=response)
We need to create a function like c3.grade
or c3.update
that we can call when changes are made to the dashboard, so we reflect those changes in the database. If this proves annoying to implement we can look at using a save button instead.
in c3.py: function to reflect changes in Cosmos
in app.py: call function when changes are made or when ed saves
app.py
re-runs hte top-level loop (over data.id
) every time an action is take on the page.
print
to loop in app.pyload_data
function and only run onceis_loaded
or something to check if we've already run that loopSELECT * FROM c WHERE c.graded = null
Improvements requested by @edfarialand
itemType
)On the first point, you can get the model from a column called itemType
in the df. There is also a column for grade(will be None
if not graded), but there is not guaranteed to be columns for the 'damage checkboxes'.
Add the following UI elements
B
, C
, D
*We probably need to define a model list or enum for the drop-down to draw from
I will write a function called c3.update
where you can pass the updated conversation or maybe just c3.grade
where you can pass an Id and some new info.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.