{"id":703,"date":"2024-01-06T23:22:23","date_gmt":"2024-01-06T15:22:23","guid":{"rendered":"http:\/\/madapapa.com\/wordpress\/?p=703"},"modified":"2024-01-15T21:15:17","modified_gmt":"2024-01-15T13:15:17","slug":"shang-tang-dellm-shi-li-dai-ma-fen-xi","status":"publish","type":"post","link":"http:\/\/madapapa.com\/wordpress\/?p=703","title":{"rendered":"\u5546\u6c64\u7684llm\u793a\u4f8b\u4ee3\u7801\u5206\u6790"},"content":{"rendered":"<p>\u8fd9\u662f\u5546\u6c64sensennova\u5927\u8bed\u8a00\u6a21\u578b\u7684\u793a\u4f8b\u4ee3\u7801\uff08\u5bf9\u8bdd\u751f\u6210_\u65e0\u5bf9\u8bdd\u5386\u53f2\uff09<\/p>\n<pre><code class=\"language-plain_text\">stream = True # \u6d41\u5f0f\u8f93\u51fa\u6216\u975e\u6d41\u5f0f\u8f93\u51fa\nmodel_id = &quot;nova-ptc-xl-v1&quot; # \u586b\u5199\u771f\u5b9e\u7684\u6a21\u578bID\n\nresp = sensenova.ChatCompletion.create(\n    messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;\u4eba\u751f\u5929\u5730\u95f4\uff0c\u4e0b\u4e00\u53e5\u662f\u5565&quot;}],\n    model=model_id,\n    stream=stream,\n    max_new_tokens=1024,\n    n=1,\n    repetition_penalty=1.05,\n    temperature=0.9,\n    top_p=0.7,\n    know_ids=[],\n    user=&quot;sensenova-python-test-user&quot;,\n    knowledge_config={\n        &quot;control_level&quot;: &quot;normal&quot;,\n        &quot;knowledge_base_result&quot;: True,\n        &quot;knowledge_base_configs&quot;:[]\n    },\n    plugins={\n        &quot;associated_knowledge&quot;: {\n            &quot;content&quot;: &quot;\u9700\u8981\u6ce8\u5165\u7ed9\u6a21\u578b\u7684\u77e5\u8bc6&quot;,\n            &quot;mode&quot;: &quot;concatenate&quot;\n        },\n        &quot;web_search&quot;: {\n            &quot;search_enable&quot;: True,\n            &quot;result_enable&quot;: True\n        },\n    }\n)\n\nif not stream:\n    resp = [resp]\nfor part in resp:\n    choices = part['data'][&quot;choices&quot;]\n    for c_idx, c in enumerate(choices):\n        if len(choices) &gt; 1:\n            sys.stdout.write(&quot;===== Chat Completion {} =====\\n&quot;.format(c_idx))\n        if stream:\n            delta = c.get(&quot;delta&quot;)\n            if delta:\n                sys.stdout.write(delta)\n        else:\n            sys.stdout.write(c[&quot;message&quot;])\n            if len(choices) &gt; 1:\n                sys.stdout.write(&quot;\\n&quot;)\n        sys.stdout.flush()\n<\/code><\/pre>\n<p>\u4e0b\u9762\u6211\u4eec\u6765line by line\u7684\u89e3\u91ca<\/p>\n<h3><a id=\"%E8%8B%B1%E6%96%87\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u82f1\u6587<\/h3>\n<ol>\n<li>stream = True: This line sets a variable named stream. If True, it indicates that the output will be in a streaming fashion. Streaming output is typically used for real-time data processing.<\/li>\n<li>model_id = &quot;nova-ptc-xl-v1&quot;: Here, model_id is set to the string &quot;nova-ptc-xl-v1&quot;, which seems to be the identifier of a specific model in the Sensenova framework.<\/li>\n<li>resp = sensenova.ChatCompletion.create(&#8230;): This line calls the create method of the ChatCompletion class from the sensenova module. This method likely generates a chat completion or response based on the given parameters.<\/li>\n<li>messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;\u4eba\u751f\u5929\u5730\u95f4\uff0c\u4e0b\u4e00\u53e5\u662f\u5565&quot;}]: Specifies the input message for the chat model. Here, the role is set as &quot;user&quot; and the content is a Chinese phrase.<\/li>\n<li>model=model_id: Specifies the model to be used for chat completion.<\/li>\n<li>stream=stream: Passes the stream variable to control streaming behavior.<\/li>\n<li>max_new_tokens=1024: Limits the number of new tokens (words\/characters) that the model can generate.<\/li>\n<li>n=1: Indicates that the number of completions to generate is 1.<\/li>\n<li>repetition_penalty=1.05: Adjusts the likelihood of the model repeating the same line.<\/li>\n<li>temperature=0.9: Sets the creativity or randomness of the response.<\/li>\n<li>top_p=0.7: Controls the diversity of the response.<\/li>\n<li>know_ids=[]: An empty list, possibly for specifying known IDs for context or tracking.<\/li>\n<li>user=&quot;sensenova-python-test-user&quot;: Specifies a user identifier.<\/li>\n<li>knowledge_config={&#8230;}: Configures how the model should use external knowledge.<\/li>\n<li>plugins={&#8230;}: Configures additional features or plugins, like injecting knowledge (associated_knowledge) and enabling web search (web_search).<\/li>\n<li>if not stream: resp = [resp]: If stream is False, this wraps resp in a list. This is probably for consistency in processing the response whether it&#8217;s streaming or not.<\/li>\n<li>for part in resp:: Iterates over each part in the response.<\/li>\n<li>choices = part[&#8216;data&#8217;][&quot;choices&quot;]: Extracts the choices from the response data. This might contain the actual chat completions or responses.<\/li>\n<li>for c_idx, c in enumerate(choices):: Iterates over the choices, with c_idx being the index and c being the content.<\/li>\n<li>if len(choices) &gt; 1: &#8230;: If there are multiple choices, it prints a separator with the index.<\/li>\n<li>Inside the nested if and else:<\/li>\n<li>If stream is True, it prints delta from each choice, which might be a part of the streaming response.<\/li>\n<li>If stream is False, it prints the message from each choice.<\/li>\n<li>sys.stdout.flush(): Ensures that everything written to the standard output is actually displayed. This is often used in streaming or real-time applications to update the output promptly.<\/li>\n<\/ol>\n<p>This code seems to be a part of a chatbot implementation using the Sensenova framework, where it sends a message to a chat model and processes the response, either in a streaming manner or as a complete response.<\/p>\n<h3><a id=\"%E4%B8%AD%E6%96%87\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u4e2d\u6587<\/h3>\n<ul>\n<li>stream = True\uff1a\u8fd9\u884c\u4ee3\u7801\u8bbe\u7f6e\u4e86\u4e00\u4e2a\u540d\u4e3a stream \u7684\u53d8\u91cf\u3002\u5982\u679c\u4e3a True\uff0c\u8868\u793a\u8f93\u51fa\u5c06\u4ee5\u6d41\u5f0f\u65b9\u5f0f\u8fdb\u884c\u3002\u6d41\u5f0f\u8f93\u51fa\u901a\u5e38\u7528\u4e8e\u5b9e\u65f6\u6570\u636e\u5904\u7406\u3002<\/li>\n<li>model_id = &quot;nova-ptc-xl-v1&quot;\uff1a\u8fd9\u91cc\uff0cmodel_id \u88ab\u8bbe\u7f6e\u4e3a\u5b57\u7b26\u4e32 &quot;nova-ptc-xl-v1&quot;\uff0c\u8fd9\u4f3c\u4e4e\u662f Sensenova \u6846\u67b6\u4e2d\u7279\u5b9a\u6a21\u578b\u7684\u6807\u8bc6\u7b26\u3002<\/li>\n<li>resp = sensenova.ChatCompletion.create(&#8230;)\uff1a\u8fd9\u884c\u4ee3\u7801\u8c03\u7528\u4e86 sensenova \u6a21\u5757\u4e2d ChatCompletion \u7c7b\u7684 create \u65b9\u6cd5\u3002\u8fd9\u4e2a\u65b9\u6cd5\u53ef\u80fd\u4f1a\u6839\u636e\u7ed9\u5b9a\u7684\u53c2\u6570\u751f\u6210\u804a\u5929\u56de\u590d\u3002<\/li>\n<li>messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;\u4eba\u751f\u5929\u5730\u95f4\uff0c\u4e0b\u4e00\u53e5\u662f\u5565&quot;}]\uff1a\u6307\u5b9a\u4e86\u804a\u5929\u6a21\u578b\u7684\u8f93\u5165\u6d88\u606f\u3002\u8fd9\u91cc\uff0c\u89d2\u8272\u88ab\u8bbe\u7f6e\u4e3a &quot;user&quot;\uff0c\u5185\u5bb9\u662f\u4e00\u4e2a\u4e2d\u6587\u77ed\u8bed\u3002<\/li>\n<li>model=model_id\uff1a\u6307\u5b9a\u7528\u4e8e\u804a\u5929\u5b8c\u6210\u7684\u6a21\u578b\u3002<\/li>\n<li>stream=stream\uff1a\u4f20\u9012 stream \u53d8\u91cf\u4ee5\u63a7\u5236\u6d41\u5f0f\u884c\u4e3a\u3002<\/li>\n<li>max_new_tokens=1024\uff1a\u9650\u5236\u6a21\u578b\u53ef\u4ee5\u751f\u6210\u7684\u65b0\u4ee4\u724c\uff08\u5355\u8bcd\/\u5b57\u7b26\uff09\u7684\u6570\u91cf\u3002<\/li>\n<li>n=1\uff1a\u8868\u793a\u8981\u751f\u6210\u7684\u5b8c\u6210\u6b21\u6570\u4e3a 1\u3002<\/li>\n<li>repetition_penalty=1.05\uff1a\u8c03\u6574\u6a21\u578b\u91cd\u590d\u76f8\u540c\u884c\u7684\u53ef\u80fd\u6027\u3002<\/li>\n<li>temperature=0.9\uff1a\u8bbe\u7f6e\u56de\u5e94\u7684\u521b\u9020\u6027\u6216\u968f\u673a\u6027\u3002<\/li>\n<li>top_p=0.7\uff1a\u63a7\u5236\u56de\u5e94\u7684\u591a\u6837\u6027\u3002<\/li>\n<li>know_ids=[]\uff1a\u4e00\u4e2a\u7a7a\u5217\u8868\uff0c\u53ef\u80fd\u7528\u4e8e\u6307\u5b9a\u4e0a\u4e0b\u6587\u6216\u8ddf\u8e2a\u7684\u5df2\u77e5 ID\u3002<\/li>\n<li>user=&quot;sensenova-python-test-user&quot;\uff1a\u6307\u5b9a\u7528\u6237\u6807\u8bc6\u7b26\u3002<\/li>\n<li>knowledge_config={&#8230;}\uff1a\u914d\u7f6e\u6a21\u578b\u5982\u4f55\u4f7f\u7528\u5916\u90e8\u77e5\u8bc6\u3002<\/li>\n<li>plugins={&#8230;}\uff1a\u914d\u7f6e\u989d\u5916\u7684\u529f\u80fd\u6216\u63d2\u4ef6\uff0c\u5982\u6ce8\u5165\u77e5\u8bc6\uff08associated_knowledge\uff09\u548c\u542f\u7528\u7f51\u7edc\u641c\u7d22\uff08web_search\uff09\u3002<\/li>\n<li>if not stream: resp = [resp]\uff1a\u5982\u679c stream \u4e3a False\uff0c\u5219\u5c06 resp \u5305\u88c5\u5728\u5217\u8868\u4e2d\u3002\u8fd9\u53ef\u80fd\u662f\u4e3a\u4e86\u65e0\u8bba\u662f\u5426\u6d41\u5f0f\uff0c\u5904\u7406\u54cd\u5e94\u65f6\u7684\u4e00\u81f4\u6027\u3002<\/li>\n<li>for part in resp:\uff1a\u904d\u5386\u54cd\u5e94\u4e2d\u7684\u6bcf\u4e2a\u90e8\u5206\u3002<\/li>\n<li>choices = part[&#8216;data&#8217;][&quot;choices&quot;]\uff1a\u4ece\u54cd\u5e94\u6570\u636e\u4e2d\u63d0\u53d6 choices\u3002\u8fd9\u53ef\u80fd\u5305\u542b\u5b9e\u9645\u7684\u804a\u5929\u5b8c\u6210\u6216\u54cd\u5e94\u3002<\/li>\n<li>for c_idx, c in enumerate(choices):\uff1a\u904d\u5386 choices\uff0cc_idx \u4e3a\u7d22\u5f15\uff0cc \u4e3a\u5185\u5bb9\u3002<\/li>\n<li>if len(choices) &gt; 1: &#8230;\uff1a\u5982\u679c\u6709\u591a\u4e2a\u9009\u9879\uff0c\u5b83\u5c06\u6253\u5370\u4e00\u4e2a\u5206\u9694\u7b26\u548c\u7d22\u5f15\u3002<\/li>\n<li>\u5728\u5d4c\u5957\u7684 if \u548c else \u4e2d\uff1a\n<ul>\n<li>\u5982\u679c stream \u4e3a True\uff0c\u5b83\u4f1a\u6253\u5370\u6bcf\u4e2a\u9009\u9879\u4e2d\u7684 delta\uff0c\u8fd9\u53ef\u80fd\u662f\u6d41\u5f0f\u54cd\u5e94\u7684\u4e00\u90e8\u5206\u3002<\/li>\n<li>\u5982\u679c stream \u4e3a False\uff0c\u5b83\u4f1a\u6253\u5370\u6bcf\u4e2a\u9009\u9879\u4e2d\u7684 message\u3002<\/li>\n<\/ul>\n<\/li>\n<li>sys.stdout.flush()\uff1a\u786e\u4fdd\u5199\u5165\u6807\u51c6\u8f93\u51fa\u7684\u6240\u6709\u5185\u5bb9\u5b9e\u9645\u4e0a\u90fd\u88ab\u663e\u793a\u3002\u8fd9\u5728\u6d41\u5f0f\u6216\u5b9e\u65f6\u5e94\u7528\u4e2d\u7ecf\u5e38\u7528\u4e8e\u53ca\u65f6\u66f4\u65b0\u8f93\u51fa\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f3c\u4e4e\u662f\u4f7f\u7528 Sensenova \u6846\u67b6\u7684\u804a\u5929\u673a\u5668\u4eba\u5b9e\u73b0\u7684\u4e00\u90e8\u5206\uff0c\u5176\u4e2d\u5b83\u53d1\u9001\u6d88\u606f\u5230\u804a\u5929\u6a21\u578b\u5e76\u5904\u7406\u54cd\u5e94\uff0c\u65e0\u8bba\u662f\u4ee5\u6d41\u5f0f\u65b9\u5f0f\u8fd8\u662f\u4f5c\u4e3a\u5b8c\u6574\u7684\u54cd\u5e94\u3002<\/p>\n<h3><a id=\"%E6%A0%B8%E9%87%87%E6%A0%B7%E5%8F%82%E6%95%B0\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u6838\u91c7\u6837\u53c2\u6570<\/h3>\n<pre><code class=\"language-plain_text\">top_p\uff1a\u6838\u91c7\u6837\u53c2\u6570\uff0c\u7528\u4e8e\u89e3\u7801\u751f\u6210token\u7684\u8fc7\u7a0b\u3002\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/madapapa.com\/wordpress\/wp-content\/uploads\/2024\/01\/17045548947570.jpg\" alt=\"\" \/><\/p>\n<p>\u201c\u6838\u91c7\u6837\u53c2\u6570\uff0c\u89e3\u7801\u751f\u6210token\u65f6\uff0c\u5728\u6982\u7387\u548c\u5927\u4e8e\u7b49\u4e8etop_p\u7684\u6700\u5c0ftoken\u96c6\u5408\u4e2d\u8fdb\u884c\u91c7\u6837\u201d\u8fd9\u53e5\u8bdd\u63cf\u8ff0\u7684\u662f\u4e00\u79cd\u79f0\u4e3a\u201c\u6838\u91c7\u6837\u201d\uff08Top-p sampling\uff09\u7684\u673a\u5236\uff0c\u5b83\u7528\u4e8e\u751f\u6210\u8bed\u8a00\u6a21\u578b\u7684\u56de\u590d\u3002\u4e0b\u9762\u662f\u8fd9\u4e2a\u6982\u5ff5\u7684\u8be6\u7ec6\u89e3\u91ca\uff1a<\/p>\n<blockquote>\n<p><code>\u6838\u91c7\u6837\uff08Top-p sampling\uff09\uff1a\u8fd9\u662f\u4e00\u79cd\u5728\u81ea\u7136\u8bed\u8a00\u5904\u7406\u4e2d\u7528\u4e8e\u751f\u6210\u6587\u672c\u7684\u6280\u672f\u3002\u5728\u751f\u6210\u4e0b\u4e00\u4e2a\u8bcd\uff08token\uff09\u65f6\uff0c\u6838\u91c7\u6837\u53ea\u8003\u8651\u90a3\u4e9b\u7d2f\u79ef\u6982\u7387\u548c\u8fbe\u5230\u6307\u5b9a\u9608\u503c top_p \u7684\u6700\u53ef\u80fd\u7684\u8bcd\u3002 \u89e3\u7801\u751f\u6210token\uff1a\u5f53\u8bed\u8a00\u6a21\u578b\u751f\u6210\u56de\u590d\u65f6\uff0c\u5b83\u9010\u4e2a\u751f\u6210\u8bcd\uff08token\uff09\u3002\u89e3\u7801\u8fc7\u7a0b\u662f\u9009\u62e9\u6bcf\u4e2a\u6b65\u9aa4\u4e2d\u5e94\u8be5\u751f\u6210\u54ea\u4e2a\u8bcd\u7684\u8fc7\u7a0b\u3002 \u5728\u6982\u7387\u548c\u5927\u4e8e\u7b49\u4e8etop_p\u7684\u6700\u5c0ftoken\u96c6\u5408\u4e2d\u8fdb\u884c\u91c7\u6837\uff1a\u8fd9\u610f\u5473\u7740\u5728\u751f\u6210\u6bcf\u4e2a\u8bcd\u65f6\uff0c\u6a21\u578b\u4f1a\u67e5\u770b\u6240\u6709\u53ef\u80fd\u7684\u4e0b\u4e00\u4e2a\u8bcd\u53ca\u5176\u6982\u7387\u3002\u7136\u540e\uff0c\u5b83\u8ba1\u7b97\u8fd9\u4e9b\u6982\u7387\u7684\u7d2f\u79ef\u548c\uff0c\u5e76\u9009\u62e9\u4e00\u4e2a\u7d2f\u79ef\u548c\u81f3\u5c11\u4e3a top_p \u7684\u8bcd\u7684\u96c6\u5408\u3002\u6a21\u578b\u4ec5\u4ece\u8fd9\u4e2a\u96c6\u5408\u4e2d\u968f\u673a\u9009\u62e9\u4e0b\u4e00\u4e2a\u8bcd\uff0c\u800c\u4e0d\u662f\u4ece\u6240\u6709\u53ef\u80fd\u7684\u8bcd\u4e2d\u9009\u62e9\u3002 \u4e3e\u4f8b\u6765\u8bf4\uff0c\u5982\u679c top_p \u8bbe\u4e3a0.7\uff0c\u6a21\u578b\u4f1a\u8003\u8651\u7d2f\u79ef\u6982\u7387\u548c\u81f3\u5c11\u8fbe\u523070%\u7684\u90a3\u90e8\u5206\u8bcd\u3002\u8fd9\u6837\u7684\u9009\u62e9\u8fc7\u7a0b\u786e\u4fdd\u4e86\u751f\u6210\u7684\u6587\u672c\u65e2\u6709\u4e00\u5b9a\u7684\u591a\u6837\u6027\uff08\u56e0\u4e3a\u4e0d\u603b\u662f\u9009\u62e9\u6700\u53ef\u80fd\u7684\u8bcd\uff09\uff0c\u540c\u65f6\u4e5f\u4fdd\u6301\u4e86\u4e00\u5b9a\u7684\u8fde\u8d2f\u6027\u548c\u53ef\u8bfb\u6027\u3002 \u6838\u91c7\u6837\u662f\u4e00\u79cd\u5e73\u8861\u751f\u6210\u6587\u672c\u591a\u6837\u6027\u548c\u53ef\u9884\u6d4b\u6027\u7684\u6709\u6548\u65b9\u6cd5\uff0c\u5e38\u7528\u4e8e\u5404\u79cd\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60\u7684\u8bed\u8a00\u751f\u6210\u6a21\u578b\u3002<\/code><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u5546\u6c64sensennova\u5927\u8bed\u8a00\u6a21\u578b\u7684\u793a\u4f8b\u4ee3\u7801\uff08\u5bf9\u8bdd\u751f\u6210_\u65e0\u5bf9\u8bdd\u5386\u53f2\uff09 stream = True # \u6d41\u5f0f\u8f93\u51fa\u6216\u975e\u6d41\u5f0f\u8f93\u51fa model_id = &quot;nova-ptc-xl-v1&quot; # \u586b\u5199\u771f\u5b9e\u7684\u6a21\u578bID resp = sensenova.ChatCompletion.create( messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;\u4eba\u751f\u5929\u5730\u95f4\uff0c\u4e0b\u4e00\u53e5\u662f\u5565&quot;}], model=model_id, stream=stream, max_new_tokens=1024, n=1, repetition_penalty=1.05, temperature=0.9, top_p=0.7, know_ids=[], user=&quot;sensenova-python-test-user&quot;, knowledge_config={ &quot;control_level&quot;: &quot;normal&quot;, &quot;knowledge_base_result&quot;: True, &quot;knowledge_base_configs&quot;:[] }, plugins={ &quot;associated_knowledge&quot;: { &quot;content&quot;: &quot;\u9700\u8981\u6ce8\u5165\u7ed9\u6a21\u578b\u7684\u77e5\u8bc6&quot;, &quot;mode&quot;: &quot;concatenate&quot; }, &quot;web_search&quot;: { &quot;search_enable&quot;: True, &quot;result_enable&quot;: True }, } ) if not stream: resp &hellip; <a href=\"http:\/\/madapapa.com\/wordpress\/?p=703\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u5546\u6c64\u7684llm\u793a\u4f8b\u4ee3\u7801\u5206\u6790<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[48],"tags":[],"class_list":["post-703","post","type-post","status-publish","format-standard","hentry","category-artificial-intelligence"],"_links":{"self":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=703"}],"version-history":[{"count":3,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions"}],"predecessor-version":[{"id":706,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions\/706"}],"wp:attachment":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}