摘要: https://www.youtube.com/watch?v=YEBfamv-_do#t=02m37s 这个video很好地解释了DH算法的原理,简单清晰。需要稍微了解些取模运算的知识:参见:https://www.khanacademy.org/computing/computer-scienc 阅读全文
posted @ 2023-09-07 16:26 saaspeter 阅读(26) 评论(0) 推荐(0)
摘要: 我的ubuntu机器只有10G,pip安装sentence_transformers的时候提示空间不足,这真是个耗磁盘大户,至少2G。 于是我就想办法清理空间,发现有几处可以清理: 1. /tmp,这里是临时文件 2. /var/log, 服务器运行log,可能较大 3. 清理snap库。参见:ht 阅读全文
posted @ 2023-08-05 00:29 saaspeter 阅读(71) 评论(0) 推荐(0)
摘要: 以下文章非常好的解释了python中的async wait的用法。copy自:https://fastapi.tiangolo.com/async/#in-a-hurry Details about the async def syntax for path operation functions  阅读全文
posted @ 2023-08-03 21:12 saaspeter 阅读(38) 评论(0) 推荐(0)
摘要: 直接用LLM是不精确的,需要结合graph DB+LLM,参见: https://medium.com/neo4j/harnessing-large-language-models-with-neo4j-306ccbdd2867 https://neo4j.com/developer-blog/fi 阅读全文
posted @ 2023-07-30 23:35 saaspeter 阅读(111) 评论(0) 推荐(0)
摘要: git clone有时候访问不了,参考这篇文章 https://cloud.tencent.com/developer/article/2273542?areaSource=102001.8&traceId=ySiaJFMuy16KJdS-p4Gi3 阅读全文
posted @ 2023-07-30 16:42 saaspeter 阅读(81) 评论(0) 推荐(0)
摘要: 通常情况下,我希望mac能过几分钟的空闲,屏幕自动锁定。但是有时候有command任务运行的时候,我不希望机器睡眠。 之前我的mac不能自动睡眠,经过排查知道是Edge浏览器所为,所以卸载了edge浏览器。(https://zhuanlan.zhihu.com/p/645253013) 因此想如果有 阅读全文
posted @ 2023-07-29 00:09 saaspeter 阅读(104) 评论(0) 推荐(0)
摘要: What are embeddings? Text embeddings are a natural language processing (NLP) technique that converts text into numerical vectors. Embeddings capture s 阅读全文
posted @ 2023-07-24 22:29 saaspeter 阅读(51) 评论(0) 推荐(0)
摘要: 为了学习测试下crack wifi,参考了这篇文章:https://www.wikihow.com/Hack-WPA/WPA2-Wi-Fi-with-Kali-Linux (kali) 也可以参考:https://gainanov.pro/eng-blog/sysad/wifi-cracking/ 阅读全文
posted @ 2023-07-23 16:23 saaspeter 阅读(1035) 评论(1) 推荐(0)
摘要: 来源: https://blog.langchain.dev/tutorial-chatgpt-over-your-data/ https://github.com/hwchase17/chat-your-data High Level Walkthrough At a high level, th 阅读全文
posted @ 2023-07-21 17:58 saaspeter 阅读(43) 评论(0) 推荐(0)
摘要: see: Retrievers | 🦜️🔗 Langchain https://blog.langchain.dev/retrieval/ 按文档说的Retriever就是一个接口,可以把和query相关的文档都查询出来,而vectorDB是否成retriever的关键组件之一。 阅读全文
posted @ 2023-07-21 16:25 saaspeter 阅读(36) 评论(0) 推荐(0)